Adds -gs option (git submodule updating)

master
Joey Pollack 4 years ago
parent 8423f5e40c
commit 8d9460fe6c

@ -0,0 +1,3 @@
✔ @high Add an option to change the compiler/generator (vs version, clang, etc) @done(22-04-18 17:58)
☐ Add library source directories to the root CMake project include directories

@ -284,7 +284,7 @@ int main(int argc, char** argv)
}
// Link to any libs that exist or add space to link to submodules added through git
if (libraries.size() > 0 || argParser.ContainsOption("-gs"))
if (libraries.size() > 0)
{
ofs << "\n\ntarget_link_directories(${PROJECT_NAME} ";
@ -294,13 +294,18 @@ int main(int argc, char** argv)
}
ofs << ")";
ofs << "\n\ntarget_link_libraries(${PROJECT_NAME}";
ofs << "\n\ntarget_link_libraries(${PROJECT_NAME} ";
for (int i = 0; i < libraries.size(); i++)
{
ofs << " " << libraries[i].c_str();
}
ofs << ")";
}
else if (argParser.ContainsOption("-gs"))
{
ofs << "\n\n# target_link_directories(${PROJECT_NAME} )";
ofs << "\n\n# target_link_libraries(${PROJECT_NAME} )";
}
}

Loading…
Cancel
Save