summaryrefslogtreecommitdiffstats
path: root/Modules/CTestTargets.cmake
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2012-03-29 16:05:10 (GMT)
committerBen Boeckel <mathstuf@gmail.com>2012-03-29 17:46:15 (GMT)
commitd5318e00cb9a0b148f6f4484070ce803543dc070 (patch)
tree823697eb4ffcbd244f0164eae5c19c587c69a51b /Modules/CTestTargets.cmake
parent58db6ac2991ee00536f7aded84811f1e3eead906 (diff)
downloadCMake-d5318e00cb9a0b148f6f4484070ce803543dc070.zip
CMake-d5318e00cb9a0b148f6f4484070ce803543dc070.tar.gz
CMake-d5318e00cb9a0b148f6f4484070ce803543dc070.tar.bz2
Create granular targets for Ninja generators too
Diffstat (limited to 'Modules/CTestTargets.cmake')
-rw-r--r--Modules/CTestTargets.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CTestTargets.cmake b/Modules/CTestTargets.cmake
index d66874d..bc4d964 100644
--- a/Modules/CTestTargets.cmake
+++ b/Modules/CTestTargets.cmake
@@ -69,7 +69,7 @@ IF(NOT _CTEST_TARGETS_ADDED)
ENDFOREACH(mode)
# For Makefile generators add more granular targets.
- IF("${CMAKE_GENERATOR}" MATCHES Make)
+ IF("${CMAKE_GENERATOR}" MATCHES "(Ninja|Make)")
# Make targets for Experimental builds
FOREACH(mode Nightly Experimental Continuous)
FOREACH(testtype
@@ -83,7 +83,7 @@ IF(NOT _CTEST_TARGETS_ADDED)
SET_PROPERTY(TARGET ${mode}${testtype} PROPERTY FOLDER "CTestDashboardTargets")
ENDFOREACH(testtype)
ENDFOREACH(mode)
- ENDIF("${CMAKE_GENERATOR}" MATCHES Make)
+ ENDIF("${CMAKE_GENERATOR}" MATCHES "(Ninja|Make)")
# If requested, add an alias that is the equivalent of the built-in "test"
# or "RUN_TESTS" target: