diff options
author | Fraser Hutchison <fraser.hutchison@maidsafe.net> | 2014-11-19 09:21:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-11-19 21:22:56 (GMT) |
commit | 543c4304bb48149ed2f642f88070829a30266ec0 (patch) | |
tree | b5ecd5114611535899ebcdd4dd15b438f7230128 /Modules/Platform | |
parent | 54ff77dc621a91302abad0ab38d9bd26de8914b9 (diff) | |
download | CMake-543c4304bb48149ed2f642f88070829a30266ec0.zip CMake-543c4304bb48149ed2f642f88070829a30266ec0.tar.gz CMake-543c4304bb48149ed2f642f88070829a30266ec0.tar.bz2 |
Avoid if() quoted auto-dereference when checking for "MSVC"
When testing CMAKE_<LANG>_COMPILER_ID values against "MSVC", do not
allow the definition of the "MSVC" variable to be expanded.
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Windows-Clang.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Platform/Windows-Clang.cmake b/Modules/Platform/Windows-Clang.cmake index 4c936fe..da19a3d 100644 --- a/Modules/Platform/Windows-Clang.cmake +++ b/Modules/Platform/Windows-Clang.cmake @@ -18,8 +18,8 @@ if(__WINDOWS_CLANG) endif() set(__WINDOWS_CLANG 1) -if(CMAKE_C_SIMULATE_ID STREQUAL "MSVC" - OR CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC") +if("x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC" + OR "x${CMAKE_CXX_SIMULATE_ID}" STREQUAL "xMSVC") include(Platform/Windows-MSVC) macro(__windows_compiler_clang lang) __windows_compiler_msvc(${lang}) |