diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | CMakeLists.txt | 8 |
2 files changed, 6 insertions, 4 deletions
@@ -1,7 +1,9 @@ /bin +/build /out /fuzz-out /emscripten *.pyc .idea/ +.vscode/ /cmake-build-debug/ diff --git a/CMakeLists.txt b/CMakeLists.txt index 49f5bfbc..6d68cb18 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,19 +27,19 @@ option(CODE_COVERAGE "Build with code coverage enabled" OFF) option(WITH_EXCEPTIONS "Build with exceptions enabled" OFF) option(WERROR "Build with warnings as errors" OFF) -if (${CMAKE_C_COMPILER_ID} STREQUAL "Clang") +if (CMAKE_C_COMPILER_ID MATCHES "Clang") set(COMPILER_IS_CLANG 1) set(COMPILER_IS_GNU 0) set(COMPILER_IS_MSVC 0) -elseif (${CMAKE_C_COMPILER_ID} STREQUAL "GNU") +elseif (CMAKE_C_COMPILER_ID STREQUAL "GNU") set(COMPILER_IS_CLANG 0) set(COMPILER_IS_GNU 1) set(COMPILER_IS_MSVC 0) -elseif (${CMAKE_C_COMPILER_ID} STREQUAL "MSVC") +elseif (MSVC) set(COMPILER_IS_CLANG 0) set(COMPILER_IS_GNU 0) set(COMPILER_IS_MSVC 1) -elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Emscripten") +elseif (CMAKE_SYSTEM_NAME STREQUAL "Emscripten") set(COMPILER_IS_CLANG 1) set(COMPILER_IS_GNU 0) set(COMPILER_IS_MSVC 0) |