summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0037/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-08 16:44:55 (GMT)
committerBrad King <brad.king@kitware.com>2013-11-11 12:27:02 (GMT)
commit8c6c1f16c94318630a547425637fdbc34f86f1fc (patch)
tree1adff3d94208c97f97ea5e1740358553d6321b6c /Tests/RunCMake/CMP0037/RunCMakeTest.cmake
parent596b2a8c0820bed8195e2377927a18cf2d76727c (diff)
downloadCMake-8c6c1f16c94318630a547425637fdbc34f86f1fc.zip
CMake-8c6c1f16c94318630a547425637fdbc34f86f1fc.tar.gz
CMake-8c6c1f16c94318630a547425637fdbc34f86f1fc.tar.bz2
Enable RunCMake.CMP0037 test everywhere
Split the test cases covering spaces and colons into separate units. Run the space cases everywhere. Disable the colon cases where they are known to fail. This approach increases platform coverage for the test and makes the known-failure logic as local as possible. No Makefile generator on Windows can generate targets with ':' in their name because the CMakeFiles/<target>.dir directory cannot be created. Skip this part of the test on all Windows Make tools.
Diffstat (limited to 'Tests/RunCMake/CMP0037/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/CMP0037/RunCMakeTest.cmake11
1 files changed, 8 insertions, 3 deletions
diff --git a/Tests/RunCMake/CMP0037/RunCMakeTest.cmake b/Tests/RunCMake/CMP0037/RunCMakeTest.cmake
index e983526..fbb1788 100644
--- a/Tests/RunCMake/CMP0037/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CMP0037/RunCMakeTest.cmake
@@ -1,5 +1,10 @@
include(RunCMake)
-run_cmake(CMP0037-NEW)
-run_cmake(CMP0037-OLD)
-run_cmake(CMP0037-WARN)
+run_cmake(CMP0037-OLD-space)
+run_cmake(CMP0037-NEW-space)
+run_cmake(CMP0037-WARN-space)
+run_cmake(CMP0037-NEW-colon)
+
+if(NOT (WIN32 AND "${RunCMake_GENERATOR}" MATCHES "Make"))
+ run_cmake(CMP0037-WARN-colon)
+endif()