|
|
@ -70,11 +70,11 @@ CMake::CMake(const std::string &path, bool build) {
|
|
|
|
const auto &project = toml::find(toml, "project");
|
|
|
|
const auto &project = toml::find(toml, "project");
|
|
|
|
project_name = toml::find(project, "name").as_string();
|
|
|
|
project_name = toml::find(project, "name").as_string();
|
|
|
|
project_version = toml::find(project, "version").as_string();
|
|
|
|
project_version = toml::find(project, "version").as_string();
|
|
|
|
if (project.contains("inject-before")) {
|
|
|
|
if (project.contains("cmake-before")) {
|
|
|
|
inject_before = toml::find(project, "inject-before").as_string();
|
|
|
|
cmake_before = toml::find(project, "cmake-before").as_string();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (project.contains("inject-after")) {
|
|
|
|
if (project.contains("cmake-after")) {
|
|
|
|
inject_after = toml::find(project, "inject-after").as_string();
|
|
|
|
cmake_after = toml::find(project, "cmake-after").as_string();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (project.contains("include-before")) {
|
|
|
|
if (project.contains("include-before")) {
|
|
|
|
include_before = detail::to_string_vec(toml::find(project, "include-before").as_array());
|
|
|
|
include_before = detail::to_string_vec(toml::find(project, "include-before").as_array());
|
|
|
@ -222,11 +222,11 @@ CMake::CMake(const std::string &path, bool build) {
|
|
|
|
target.properties = toml::find<prop_map>(t, "properties");
|
|
|
|
target.properties = toml::find<prop_map>(t, "properties");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (t.contains("inject-before")) {
|
|
|
|
if (t.contains("cmake-before")) {
|
|
|
|
target.inject_before = toml::find(t, "inject-before").as_string();
|
|
|
|
target.cmake_before = toml::find(t, "cmake-before").as_string();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (t.contains("inject-after")) {
|
|
|
|
if (t.contains("cmake-after")) {
|
|
|
|
target.inject_after = toml::find(t, "inject-after").as_string();
|
|
|
|
target.cmake_after = toml::find(t, "cmake-after").as_string();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (t.contains("include-before")) {
|
|
|
|
if (t.contains("include-before")) {
|
|
|
|
target.include_before = detail::to_string_vec(toml::find(t, "include-before").as_array());
|
|
|
|
target.include_before = detail::to_string_vec(toml::find(t, "include-before").as_array());
|
|
|
|