summaryrefslogtreecommitdiffstats
path: root/Modules/CTestTargets.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2017-12-29 20:33:11 (GMT)
committerCraig Scott <craig.scott@crascit.com>2017-12-29 22:35:56 (GMT)
commit3c413e2a31b4fcb6a99dba04669c6a6517b97832 (patch)
tree0e3f6f6776b682f43654f948886e34d482441aa2 /Modules/CTestTargets.cmake
parentc267ea1c3e54626e4ab2283dc7529ed8aa8beac8 (diff)
downloadCMake-3c413e2a31b4fcb6a99dba04669c6a6517b97832.zip
CMake-3c413e2a31b4fcb6a99dba04669c6a6517b97832.tar.gz
CMake-3c413e2a31b4fcb6a99dba04669c6a6517b97832.tar.bz2
GENERATOR_IS_MULTI_CONFIG: Use for multi-config checks in Modules
Diffstat (limited to 'Modules/CTestTargets.cmake')
-rw-r--r--Modules/CTestTargets.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CTestTargets.cmake b/Modules/CTestTargets.cmake
index ff9aada..da9bcb0 100644
--- a/Modules/CTestTargets.cmake
+++ b/Modules/CTestTargets.cmake
@@ -38,7 +38,8 @@ endif()
#
set(__conf_types "")
-if(CMAKE_CONFIGURATION_TYPES)
+get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
+if(_isMultiConfig)
# We need to pass the configuration type on the test command line.
set(__conf_types -C "${CMAKE_CFG_INTDIR}")
endif()