summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-05-21 14:31:54 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-05-21 14:31:54 (GMT)
commit04a0e5ff14e511ab4bdeeacf83b878e870265da1 (patch)
tree42270b6e2fe600a297b4fa5535ee6ee837172db6 /Tests
parent20a32a4b725e117fa2b261a6734ea85dfb4b55d4 (diff)
parentcda233194f9caab8867b2451f3d859080a233d45 (diff)
downloadCMake-04a0e5ff14e511ab4bdeeacf83b878e870265da1.zip
CMake-04a0e5ff14e511ab4bdeeacf83b878e870265da1.tar.gz
CMake-04a0e5ff14e511ab4bdeeacf83b878e870265da1.tar.bz2
Merge topic 'clang-features'
cda23319 Features: Record for Clang 3.4
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt5
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)