summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-15 16:09:21 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-17 14:20:50 (GMT)
commit8d0b1ccac13389255a318422d38b246cf47d9ace (patch)
treeb3b0858f1ae8137dc1b0b62e0b25234186e1f248 /Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake
parent447fbb3facd09a29a2a402df258acf01cbf0bc34 (diff)
downloadCMake-8d0b1ccac13389255a318422d38b246cf47d9ace.zip
CMake-8d0b1ccac13389255a318422d38b246cf47d9ace.tar.gz
CMake-8d0b1ccac13389255a318422d38b246cf47d9ace.tar.bz2
Features: FATAL_ERROR on compilers with no recorded features.
Users of the new target_compile_features command are expected to check the existence of the CMAKE_CXX_COMPILE_FEATURES variable before attempting to use it to require features.
Diffstat (limited to 'Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake b/Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake
index a6aeeee..43d4cb3 100644
--- a/Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CompileFeatures/RunCMakeTest.cmake
@@ -7,3 +7,14 @@ run_cmake(NotAFeature_OriginDebug)
run_cmake(NotAFeature_OriginDebugGenex)
run_cmake(NotAFeature_OriginDebugTransitive)
run_cmake(NotAFeature_OriginDebug_target_compile_features)
+
+run_cmake(generate_feature_list)
+file(READ
+ "${RunCMake_BINARY_DIR}/generate_feature_list-build/features.txt"
+ FEATURES
+)
+
+if (NOT FEATURES)
+ run_cmake(NoSupportedCxxFeatures)
+ run_cmake(NoSupportedCxxFeaturesGenex)
+endif()