diff options
author | Shauren <shauren.trinity@gmail.com> | 2016-04-05 17:55:32 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2016-04-09 12:38:20 +0200 |
commit | 702cfefddbc1a8a83e113cec44ee09ecc9daf6db (patch) | |
tree | 86ad39f4569dfaed2b123f7d18ddfc0bbd126625 /dep | |
parent | 25b3564a9d2c9205ff3712488b0d48dc3c09cc4f (diff) |
Buildsystem: Initial changes to support building with vs clang toolset
(cherry picked from commit 4a3a178d7fe9d2d7e8fde2fe915cf5cec5223502)
Diffstat (limited to 'dep')
-rw-r--r-- | dep/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dep/CMakeLists.txt b/dep/CMakeLists.txt index 0932c7d4058..6c8fd09de28 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) |