|
|
@ -718,11 +718,7 @@ void generate_cmake(const char *path, const parser::Project *parent_project) {
|
|
|
|
version_info = " (" + content.arguments.at("SVN_REVISION") + ")";
|
|
|
|
version_info = " (" + content.arguments.at("SVN_REVISION") + ")";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cmd("message")("STATUS", "Fetching " + content.name + version_info + "...");
|
|
|
|
cmd("message")("STATUS", "Fetching " + content.name + version_info + "...");
|
|
|
|
ss << "FetchContent_Declare(\n\t" << content.name << "\n";
|
|
|
|
cmd("FetchContent_Declare")(content.name, content.arguments);
|
|
|
|
for (const auto &arg : content.arguments) {
|
|
|
|
|
|
|
|
ss << "\t" << arg.first << "\n\t\t" << arg.second << "\n";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
ss << ")\n";
|
|
|
|
|
|
|
|
cmd("FetchContent_MakeAvailable")(content.name).endl();
|
|
|
|
cmd("FetchContent_MakeAvailable")(content.name).endl();
|
|
|
|
|
|
|
|
|
|
|
|
gen.conditional_includes(content.include_after);
|
|
|
|
gen.conditional_includes(content.include_after);
|
|
|
|