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:24:54 (GMT) |
commit | 4d52cd36ada014bc3e9a65be06b30966cf29f9a8 (patch) | |
tree | 201d12849d117b94db5c81b316ca1f36e7f899cd /Modules/Compiler/Clang-CXX.cmake | |
parent | f7b6f3d967b9bebc720ba981bb0f4d8b706bc74c (diff) | |
download | CMake-4d52cd36ada014bc3e9a65be06b30966cf29f9a8.zip CMake-4d52cd36ada014bc3e9a65be06b30966cf29f9a8.tar.gz CMake-4d52cd36ada014bc3e9a65be06b30966cf29f9a8.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/Compiler/Clang-CXX.cmake')
-rw-r--r-- | Modules/Compiler/Clang-CXX.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/Clang-CXX.cmake b/Modules/Compiler/Clang-CXX.cmake index 780a072..6fe0b56 100644 --- a/Modules/Compiler/Clang-CXX.cmake +++ b/Modules/Compiler/Clang-CXX.cmake @@ -1,7 +1,7 @@ include(Compiler/Clang) __compiler_clang(CXX) -if(NOT CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC") +if(NOT "x${CMAKE_CXX_SIMULATE_ID}" STREQUAL "xMSVC") set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY_INLINES_HIDDEN "-fvisibility-inlines-hidden") endif() |