summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-09-29 11:50:34 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-09-29 11:50:54 (GMT)
commit9c9c7d68cb814084d20b512a5e5d5e4e4a0c2e28 (patch)
tree7b63017af73f968d5e29149f7b1cec24f06b9c75 /Tests/RunCMake/CMakeLists.txt
parent0fb136c1a69946bf33e7ada4b0492475fa9b5bb7 (diff)
parentf891a75d5cb61909f46fe9b253b1d7b589e7d138 (diff)
downloadCMake-9c9c7d68cb814084d20b512a5e5d5e4e4a0c2e28.zip
CMake-9c9c7d68cb814084d20b512a5e5d5e4e4a0c2e28.tar.gz
CMake-9c9c7d68cb814084d20b512a5e5d5e4e4a0c2e28.tar.bz2
Merge topic 'compiler-tests'
f891a75d5c Tests: Test CMakeTest*Compiler.cmake fallbacks Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7722
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index 4a42bda..428bbff 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -295,6 +295,10 @@ if(UNIX AND "${CMAKE_GENERATOR}" MATCHES "Unix Makefiles|Ninja")
add_RunCMake_test(CompilerChange)
endif()
add_RunCMake_test(CompilerNotFound)
+if (APPLE AND CMAKE_C_COMPILER_ID MATCHES "Clang|GNU")
+ list(APPEND CompilerTest_ARGS -DCMake_TEST_OBJC=1)
+endif()
+add_RunCMake_test(CompilerTest)
add_RunCMake_test(Configure -DMSVC_IDE=${MSVC_IDE})
add_RunCMake_test(DisallowedCommands)
if("${CMAKE_GENERATOR}" MATCHES "Unix Makefiles|Ninja")