aboutsummaryrefslogtreecommitdiff
path: root/dep/CMakeLists.txt
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-04-05 17:55:32 +0200
committerShauren <shauren.trinity@gmail.com>2016-04-05 22:43:41 +0200
commit4a3a178d7fe9d2d7e8fde2fe915cf5cec5223502 (patch)
tree4d75c3393ff1707ec5a2793590f2496be8373a22 /dep/CMakeLists.txt
parent792299bbd544a44911e463383be567d7738412a5 (diff)
Buildsystem: Initial changes to support building with vs clang toolset
Diffstat (limited to 'dep/CMakeLists.txt')
-rw-r--r--dep/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/dep/CMakeLists.txt b/dep/CMakeLists.txt
index f99e97960bc..e402eb849a5 100644
--- a/dep/CMakeLists.txt
+++ b/dep/CMakeLists.txt
@@ -8,7 +8,9 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-if( MSVC )
+if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
+ string(REGEX REPLACE "/W[0-4] " "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+ string(REGEX REPLACE "/W[0-4] " "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
add_definitions(/W0)
else()
add_definitions(-w)