diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/mingw-w64.cmake | 2 | ||||
-rw-r--r-- | cmake/opentrack-platform.cmake | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake index 1879ab3a..e96b3d6d 100644 --- a/cmake/mingw-w64.cmake +++ b/cmake/mingw-w64.cmake @@ -61,7 +61,7 @@ set(cc "") #set(cc "-fdump-statistics-details -fdump-ipa-cgraph") set(clang-warns "") -if(CMAKE_COMPILER_IS_CLANG) +if(CMAKE_COMPILER_IS_CLANGXX) set(clang-warns "-Wweak-vtables") endif() diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index 0cdb1d57..a72c4918 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -40,12 +40,12 @@ if(APPLE) endif() if(MSVC AND MSVC_VERSION LESS "1915" AND NOT ".${CMAKE_CXX_COMPILER_ID}" STREQUAL ".Clang") - message(FATAL_ERROR "Visual Studio too old. Use Visual Studio 2017 Preview or newer.") + message(FATAL_ERROR "Visual Studio too old. Use Visual Studio 2017 or newer.") endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") set(CMAKE_COMPILER_IS_GNUCXX TRUE) - set(CMAKE_COMPILER_IS_CLANG TRUE) + set(CMAKE_COMPILER_IS_CLANGXX TRUE) endif() if(CMAKE_C_COMPILER_ID STREQUAL "Clang") |