diff options
author | Shauren <shauren.trinity@gmail.com> | 2016-04-05 17:55:32 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2016-04-05 22:43:41 +0200 |
commit | 4a3a178d7fe9d2d7e8fde2fe915cf5cec5223502 (patch) | |
tree | 4d75c3393ff1707ec5a2793590f2496be8373a22 /CMakeLists.txt | |
parent | 792299bbd544a44911e463383be567d7738412a5 (diff) |
Buildsystem: Initial changes to support building with vs clang toolset
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index dda8f242feb..01d785ca855 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,11 @@ project(TrinityCore) cmake_policy(SET CMP0005 OLD) if(POLICY CMP0043) cmake_policy(SET CMP0043 OLD) # Disable 'Ignore COMPILE_DEFINITIONS_<Config> properties' -endif(POLICY CMP0043) +endif() + +if(POLICY CMP0054) + cmake_policy(SET CMP0054 NEW) # Only interpret if() arguments as variables or keywords when unquoted - prevents intepreting if (SOME_STRING_VARIABLE MATCHES "MSVC") as if (SOME_STRING_VARIABLE MATCHES "1") +endif() # add this options before PROJECT keyword set(CMAKE_DISABLE_SOURCE_CHANGES ON) |