summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-01-11 17:00:24 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-01-11 17:00:24 (GMT)
commit775fb2e0b03772f08b5740ad5463f849109f0c7f (patch)
tree8a9a34c31d276fa71affe4d6ddd5507c853cd283 /Tests/RunCMake
parent1c0d6a7cb5c51fef3ee8804ed298da95e2c1ca1a (diff)
parent2d738ce37acda92b344b1d3f2be2d3b6df63763c (diff)
downloadCMake-775fb2e0b03772f08b5740ad5463f849109f0c7f.zip
CMake-775fb2e0b03772f08b5740ad5463f849109f0c7f.tar.gz
CMake-775fb2e0b03772f08b5740ad5463f849109f0c7f.tar.bz2
Merge topic 'feature_record_msvc'
2d738ce3 Help: Add notes for topic 'feature_record_msvc' f73718c9 Features: Enable writing of MSVC compiler feature header. 64c30bdc Features: Record for MSVC C++ 2015 and MSVC C 2010-2015. 225c0ef8 Features: Record for MSVC 2010-2013.
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake b/Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake
index 1892a5c..3b37091 100644
--- a/Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake
@@ -27,8 +27,13 @@ if (NOT CXX_FEATURES)
run_cmake(NoSupportedCxxFeatures)
run_cmake(NoSupportedCxxFeaturesGenex)
else()
- run_cmake(LinkImplementationFeatureCycle)
- run_cmake(LinkImplementationFeatureCycleSolved)
+ # compilers such as MSVC have no explicit flags to enable c++11 mode.
+ # Instead they come with all c++11 features implicitly enabled.
+ # So for those types of compilers this tests is not applicable.
+ if(CMAKE_CXX11_STANDARD_COMPILE_OPTION)
+ run_cmake(LinkImplementationFeatureCycle)
+ run_cmake(LinkImplementationFeatureCycleSolved)
+ endif()
if (";${CXX_FEATURES};" MATCHES ";cxx_final;")
set(RunCMake_TEST_OPTIONS "-DHAVE_FINAL=1")