Browse Source

CMake: don't trust the MSVC variable.

pull/218/head
Vladimír Vondruš 9 years ago
parent
commit
f7c6a4d066
  1. 2
      src/CMakeLists.txt

2
src/CMakeLists.txt

@ -31,7 +31,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_CXX_COMPILER_VERSION VERSI
endif()
# On MSVC remove /W3, as we are replacing it with /W4
if(MSVC)
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")
string(REPLACE "/W3" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
endif()

Loading…
Cancel
Save