Emit add_subdirectory calls after the project but before the targets

vcpkg-wip
Duncan Ogilvie 4 years ago
parent f905440871
commit ad3869da11

@ -64,10 +64,6 @@ CMake::CMake(const std::string &path, bool build) {
if (cmake.contains("link-flags")) {
linkflags = detail::to_string_vec(toml::find(cmake, "link-flags").as_array());
}
if (cmake.contains("subdirs")) {
subdirs = detail::to_string_vec(toml::find(cmake, "subdirs").as_array());
}
}
if (toml.contains("project")) {
@ -86,6 +82,9 @@ CMake::CMake(const std::string &path, bool build) {
if (project.contains("include-after")) {
include_after = detail::to_string_vec(toml::find(project, "include-after").as_array());
}
if (project.contains("subdirs")) {
subdirs = detail::to_string_vec(toml::find(project, "subdirs").as_array());
}
}
if (toml.contains("settings")) {

Loading…
Cancel
Save