|
|
@ -259,10 +259,11 @@ CMake::CMake(const std::string &path, bool build) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Reasonable default conditions (you can override these if you desire)
|
|
|
|
// Reasonable default conditions (you can override these if you desire)
|
|
|
|
conditions["win32"] = conditions["windows"] = conditions["win"] = "WIN32";
|
|
|
|
conditions["windows"] = R"cmake(WIN32)cmake";
|
|
|
|
conditions["macos"] = conditions["macosx"] = conditions["osx"] = conditions["mac"] = R"cond("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")cond";
|
|
|
|
conditions["macos"] = R"cmake("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")cmake";
|
|
|
|
conditions["unix"] = "UNIX";
|
|
|
|
conditions["unix"] = R"cmake(UNIX)cmake";
|
|
|
|
conditions["linux"] = R"cond("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")cond";
|
|
|
|
conditions["bsd"] = R"cmake("${CMAKE_SYSTEM_NAME}" MATCHES "BSD")cmake";
|
|
|
|
|
|
|
|
conditions["linux"] = conditions["lunix"] = R"cmake("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")cmake";
|
|
|
|
|
|
|
|
|
|
|
|
if (toml.contains("conditions")) {
|
|
|
|
if (toml.contains("conditions")) {
|
|
|
|
auto conds = toml::find<decltype(conditions)>(toml, "conditions");
|
|
|
|
auto conds = toml::find<decltype(conditions)>(toml, "conditions");
|
|
|
|