summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-05-06 17:48:42 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-05-06 17:48:42 (GMT)
commit8e767a27d29a1ca4d456e6484893a51347f0d484 (patch)
tree860841861e9b63d8c02f70600d9e7bb601e05707 /Modules
parent58557486db5343f7d63f709177be980ad8ced590 (diff)
parent3fdfa5d3fc1170f1cc69636765502ca14b1821ef (diff)
downloadCMake-8e767a27d29a1ca4d456e6484893a51347f0d484.zip
CMake-8e767a27d29a1ca4d456e6484893a51347f0d484.tar.gz
CMake-8e767a27d29a1ca4d456e6484893a51347f0d484.tar.bz2
Merge topic 'CMAKE_CXX_KNOWN_FEATURES-global-property'
3fdfa5d3 Features: Make CMAKE_CXX_KNOWN_FEATURES a property.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Internal/FeatureTesting.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/Internal/FeatureTesting.cmake b/Modules/Internal/FeatureTesting.cmake
index 92d262c..0fff36b 100644
--- a/Modules/Internal/FeatureTesting.cmake
+++ b/Modules/Internal/FeatureTesting.cmake
@@ -6,7 +6,10 @@ macro(record_compiler_features lang compile_flags feature_list)
file(REMOVE "${CMAKE_BINARY_DIR}/CMakeFiles/feature_tests.bin")
file(WRITE "${CMAKE_BINARY_DIR}/CMakeFiles/feature_tests.${lang_lc}" "
extern const char features[] = {\"\"\n")
- foreach(feature ${CMAKE_${lang}_KNOWN_FEATURES})
+
+ get_property(known_features GLOBAL PROPERTY CMAKE_${lang}_KNOWN_FEATURES)
+
+ foreach(feature ${known_features})
if (_cmake_feature_test_${feature})
if (${_cmake_feature_test_${feature}} STREQUAL 1)
set(_feature_condition "\"1\" ")