diff options
author | Mariusz PluciĆski <mplucinski@mplucinski.com> | 2016-02-18 22:54:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-03-10 14:11:40 (GMT) |
commit | 0a785eb4f488447fa94eb77fa2edbeaabba70170 (patch) | |
tree | 5bd9f98ecefc668394307e180050572706024c89 /Modules/Compiler | |
parent | 2c2ec4883bd9829b3589ce0aebe466bae9e8b0e9 (diff) | |
download | CMake-0a785eb4f488447fa94eb77fa2edbeaabba70170.zip CMake-0a785eb4f488447fa94eb77fa2edbeaabba70170.tar.gz CMake-0a785eb4f488447fa94eb77fa2edbeaabba70170.tar.bz2 |
Features: Clang has no cxx_decltype_incomplete_return_type in MSVC sim mode
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/Clang-CXX-TestableFeatures.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/Compiler/Clang-CXX-TestableFeatures.cmake b/Modules/Compiler/Clang-CXX-TestableFeatures.cmake index b39475c..69965a6 100644 --- a/Modules/Compiler/Clang-CXX-TestableFeatures.cmake +++ b/Modules/Compiler/Clang-CXX-TestableFeatures.cmake @@ -8,7 +8,6 @@ set(testable_features cxx_constexpr cxx_contextual_conversions cxx_decltype - cxx_decltype_incomplete_return_types cxx_default_function_template_args cxx_defaulted_functions cxx_delegating_constructors @@ -36,6 +35,9 @@ set(testable_features cxx_variable_templates cxx_variadic_templates ) +if(NOT "x${CMAKE_CXX_SIMULATE_ID}" STREQUAL "xMSVC") + list(APPEND testable_features cxx_decltype_incomplete_return_types) +endif() foreach(feature ${testable_features}) set(_cmake_feature_test_${feature} "${_cmake_oldestSupported} && __has_feature(${feature})") |