summaryrefslogtreecommitdiffstats
path: root/Tests/Module
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-11-12 21:48:17 (GMT)
committerBrad King <brad.king@kitware.com>2014-12-22 15:44:41 (GMT)
commitbd6b42c1864dc1915e5c86cceb609e87f72f93b6 (patch)
tree1d0a4ad1d2f954dd5e4316f12e838a15a9795138 /Tests/Module
parentb341799e53e468a02bca78e3270e60ddccf8b4f3 (diff)
downloadCMake-bd6b42c1864dc1915e5c86cceb609e87f72f93b6.zip
CMake-bd6b42c1864dc1915e5c86cceb609e87f72f93b6.tar.gz
CMake-bd6b42c1864dc1915e5c86cceb609e87f72f93b6.tar.bz2
Features: Record for AppleClang 5.1
Apple's Clang 5.1 already supports most of the C and C++ features CMake enumerates.
Diffstat (limited to 'Tests/Module')
-rw-r--r--Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt b/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt
index 62c7e8c..5b2f1de 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 Clang
+ COMPILERS GNU Clang AppleClang
VERSION 3.1
PROLOG "// something"
EPILOG "// more"
@@ -57,14 +57,16 @@ macro(set_defines target true_defs false_defs)
endmacro()
if (CMAKE_CXX_COMPILER_ID STREQUAL GNU
- OR CMAKE_CXX_COMPILER_ID STREQUAL Clang)
+ OR CMAKE_CXX_COMPILER_ID STREQUAL Clang
+ OR CMAKE_CXX_COMPILER_ID STREQUAL AppleClang)
# False for C++98 mode.
list(APPEND false_defs EXPECTED_COMPILER_CXX_DELEGATING_CONSTRUCTORS)
list(APPEND false_defs EXPECTED_COMPILER_CXX_VARIADIC_TEMPLATES)
endif()
if (CMAKE_C_COMPILER_ID STREQUAL GNU
- OR CMAKE_C_COMPILER_ID STREQUAL Clang)
+ OR CMAKE_C_COMPILER_ID STREQUAL Clang
+ OR CMAKE_C_COMPILER_ID STREQUAL AppleClang)
add_executable(C_undefined c_undefined.c)
set_property(TARGET C_undefined PROPERTY CXX_STANDARD 90)
target_compile_options(C_undefined PRIVATE -Werror=undef)
@@ -79,7 +81,7 @@ write_compiler_detection_header(
PREFIX MULTI
OUTPUT_FILES_VAR multi_files
OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/compiler_multi_files/compiler_support"
- COMPILERS GNU Clang
+ COMPILERS GNU Clang AppleClang
VERSION 3.1
FEATURES
${cxx_known_features} ${c_known_features}