diff --git a/docs/cmake-toml.md b/docs/cmake-toml.md index 1c32d4f..607d11b 100644 --- a/docs/cmake-toml.md +++ b/docs/cmake-toml.md @@ -109,6 +109,13 @@ clang-any = "CMAKE_CXX_COMPILER_ID MATCHES \"Clang\" OR CMAKE_C_COMPILER_ID MATC root = "CMKR_ROOT_PROJECT" x64 = "CMAKE_SIZEOF_VOID_P EQUAL 8" x32 = "CMAKE_SIZEOF_VOID_P EQUAL 4" +android = "ANDROID" +apple = "APPLE" +bsd = "BSD" +cygwin = "CYGWIN" +ios = "IOS" +xcode = "XCODE" +wince = "WINCE" ``` ## Subdirectories diff --git a/src/project_parser.cpp b/src/project_parser.cpp index 217252f..5ea8295 100644 --- a/src/project_parser.cpp +++ b/src/project_parser.cpp @@ -274,6 +274,13 @@ Project::Project(const Project *parent, const std::string &path, bool build) : p 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"; + conditions["android"] = R"cmake(ANDROID)cmake"; + conditions["apple"] = R"cmake(APPLE)cmake"; + conditions["bsd"] = R"cmake(BSD)cmake"; + conditions["cygwin"] = R"cmake(CYGWIN)cmake"; + conditions["ios"] = R"cmake(IOS)cmake"; + conditions["xcode"] = R"cmake(XCODE)cmake"; + conditions["wince"] = R"cmake(WINCE)cmake"; } else { conditions = parent->conditions; templates = parent->templates;