summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2015-01-06 18:31:30 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-11 15:47:58 (GMT)
commita15675efc3d96906d4e803def2e83fd3bd1cf812 (patch)
treefad6fd6c217b53756df16defa84c4a16cb06d89a /Tests/CompileFeatures
parent07d1f6fca1d6ea21dea64b32639c44d5eecf98a6 (diff)
downloadCMake-a15675efc3d96906d4e803def2e83fd3bd1cf812.zip
CMake-a15675efc3d96906d4e803def2e83fd3bd1cf812.tar.gz
CMake-a15675efc3d96906d4e803def2e83fd3bd1cf812.tar.bz2
Features: Quote all compiler names when comparing with COMPILER_ID
In preparation of adding MSVC support we need to quote all compiler names, as MSVC is also a CMake variable.
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r--Tests/CompileFeatures/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/CompileFeatures/CMakeLists.txt b/Tests/CompileFeatures/CMakeLists.txt
index 834ac7c..b164f06 100644
--- a/Tests/CompileFeatures/CMakeLists.txt
+++ b/Tests/CompileFeatures/CMakeLists.txt
@@ -1,5 +1,5 @@
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.1)
project(CompileFeatures)
@@ -31,7 +31,7 @@ foreach(feature ${cxx_features})
run_test(${feature} CXX)
endforeach()
-if (CMAKE_CXX_COMPILER_ID STREQUAL GNU
+if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8)
# The cxx_alignof feature happens to work (for *this* testcase) with
# GNU 4.7, but it is first documented as available with GNU 4.8.
@@ -39,7 +39,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL GNU
cxx_alignof
)
endif()
-if (CMAKE_CXX_COMPILER_ID STREQUAL GNU
+if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)
# GNU prior to 4.9 does not set any preprocessor define to distinguish
# c++1y from c++11, so CMake does not support c++1y features before GNU 4.9.