diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-05-02 08:03:24 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-05-02 08:18:16 (GMT) |
commit | 3fdfa5d3fc1170f1cc69636765502ca14b1821ef (patch) | |
tree | ac2a317995ebc4a3d67bbc814b566bde84e0ec71 /Tests | |
parent | a354a8ba5e6ad23e2317f684434136bea622154b (diff) | |
download | CMake-3fdfa5d3fc1170f1cc69636765502ca14b1821ef.zip CMake-3fdfa5d3fc1170f1cc69636765502ca14b1821ef.tar.gz CMake-3fdfa5d3fc1170f1cc69636765502ca14b1821ef.tar.bz2 |
Features: Make CMAKE_CXX_KNOWN_FEATURES a property.
As a 'built-in' variable it imposes a cost on all variable lookups
and it is expected to be rarely used.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CompileFeatures/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/CompileFeatures/CMakeLists.txt b/Tests/CompileFeatures/CMakeLists.txt index ce5004b..501138d 100644 --- a/Tests/CompileFeatures/CMakeLists.txt +++ b/Tests/CompileFeatures/CMakeLists.txt @@ -22,7 +22,8 @@ macro(run_test feature) endif() endmacro() -foreach(feature ${CMAKE_CXX_KNOWN_FEATURES}) +get_property(features GLOBAL PROPERTY CMAKE_CXX_KNOWN_FEATURES) +foreach(feature ${features}) run_test(${feature}) endforeach() |