summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-02-13 23:08:53 (GMT)
committerBrad King <brad.king@kitware.com>2023-02-13 23:15:29 (GMT)
commit6cf281b1086c9eb69bc6ee8895744c49b11d602b (patch)
tree21b9abdbe38f599a7c299529e049d5f54dfb8225 /Tests/RunCMake/CMakeLists.txt
parent93edb4d0c08f66353b0fcde7de11f2a18f6689d6 (diff)
downloadCMake-6cf281b1086c9eb69bc6ee8895744c49b11d602b.zip
CMake-6cf281b1086c9eb69bc6ee8895744c49b11d602b.tar.gz
CMake-6cf281b1086c9eb69bc6ee8895744c49b11d602b.tar.bz2
Tests: Add dedicated RunCMake.ExtraGenerators test
The `Simple_${extraGenerator}` tests do not actually need to compile because they only smoke test CMake's generation of the extra project files.
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 930122c..e372286 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -323,6 +323,10 @@ endif()
add_RunCMake_test(ExcludeFromAll)
add_RunCMake_test(ExportImport)
add_RunCMake_test(ExternalData)
+if(CMAKE_GENERATOR MATCHES "^(Unix Makefiles|Ninja)$"
+ AND NOT "${CMAKE_CURRENT_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
+ add_RunCMake_test(ExtraGenerators)
+endif()
add_RunCMake_test(FeatureSummary)
add_RunCMake_test(FPHSA)
if(CMAKE_USE_SYSTEM_JSONCPP)