Add root, x64 and x32 conditions

This commit is contained in:
Duncan Ogilvie
2021-12-30 14:27:07 +01:00
parent 04905371b8
commit 6c1e388391
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -236,6 +236,9 @@ Project::Project(const Project *parent, const std::string &path, bool build) {
conditions["gcc"] = R"cmake(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "GNU")cmake";
conditions["clang"] = R"cmake(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_C_COMPILER_ID MATCHES "Clang")cmake";
conditions["msvc"] = R"cmake(MSVC)cmake";
conditions["root"] = R"cmake(CMKR_ROOT_PROJECT)cmake";
conditions["x64"] = R"cmake(CMAKE_SIZEOF_VOID_P EQUAL 8)cmake";
conditions["x32"] = R"cmake(CMAKE_SIZEOF_VOID_P EQUAL 4)cmake";
} else {
conditions = parent->conditions;
}