diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-05-06 09:59:12 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-05-20 14:03:48 (GMT) |
commit | cda233194f9caab8867b2451f3d859080a233d45 (patch) | |
tree | 1d85f65b5a8ae0f4a79baa5bdac5fdd1888aad4f /Tests | |
parent | 2d5e3d2d2bfd79311c40db173d13f6d0cfb10019 (diff) | |
download | CMake-cda233194f9caab8867b2451f3d859080a233d45.zip CMake-cda233194f9caab8867b2451f3d859080a233d45.tar.gz CMake-cda233194f9caab8867b2451f3d859080a233d45.tar.bz2 |
Features: Record for Clang 3.4
Clang 3.4 supports all features currently known to CMake.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt b/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt index 8dd262e..ab0ebc3 100644 --- a/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt +++ b/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt @@ -11,7 +11,7 @@ get_property(c_known_features GLOBAL PROPERTY CMAKE_C_KNOWN_FEATURES) write_compiler_detection_header( FILE "${CMAKE_CURRENT_BINARY_DIR}/test_compiler_detection.h" PREFIX TEST - COMPILERS GNU + COMPILERS GNU Clang VERSION 3.1 PROLOG "// something" EPILOG "// more" @@ -49,7 +49,8 @@ macro(set_defines target true_defs false_defs) ) endmacro() -if (CMAKE_CXX_COMPILER_ID STREQUAL GNU) +if (CMAKE_CXX_COMPILER_ID STREQUAL GNU + OR CMAKE_CXX_COMPILER_ID STREQUAL Clang) # False for C++98 mode. list(APPEND false_defs EXPECTED_COMPILER_CXX_DELEGATING_CONSTRUCTORS) list(APPEND false_defs EXPECTED_COMPILER_CXX_VARIADIC_TEMPLATES) |