diff options
| author | Rolf Eike Beer <eike@sf-mail.de> | 2017-01-25 21:00:30 +0100 |
|---|---|---|
| committer | Rolf Eike Beer <eike@sf-mail.de> | 2017-01-25 21:00:30 +0100 |
| commit | ef47272b075a2ad8018481d3fdfb6f2beb514056 (patch) | |
| tree | 2723e9832320ac15ca0ae1ebaa877ccac174fec8 /Tests/CompileFeatures | |
| parent | 014365ea97848654cc9493225399528f8b7b15b7 (diff) | |
| download | cmake-ef47272b075a2ad8018481d3fdfb6f2beb514056.tar.gz | |
Tests: use cxx_auto_type only if actually available
The presence of CMAKE_CXX_COMPILE_FEATURES doesn't mean cxx_auto_type is always
available.
Diffstat (limited to 'Tests/CompileFeatures')
| -rw-r--r-- | Tests/CompileFeatures/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/CMakeLists.txt b/Tests/CompileFeatures/CMakeLists.txt index 0405def162..13aa86e1ab 100644 --- a/Tests/CompileFeatures/CMakeLists.txt +++ b/Tests/CompileFeatures/CMakeLists.txt @@ -275,7 +275,10 @@ if (CMAKE_CXX_COMPILE_FEATURES) ) endif() endif() +endif () +# these tests only work if at least cxx_auto_type is available +if (";${CMAKE_CXX_COMPILE_FEATURES};" MATCHES ";cxx_auto_type;") add_executable(CompileFeatures main.cpp) set_property(TARGET CompileFeatures PROPERTY COMPILE_FEATURES "cxx_auto_type" |
