summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-14 18:17:34 (GMT)
committerBrad King <brad.king@kitware.com>2013-11-18 13:26:23 (GMT)
commit4d85365307975cfdb07e824b46b76da5aed4ed1e (patch)
tree75480cc5a0a7327121ca35a825333c93a1c49368 /Tests/CMakeLists.txt
parent95b28eb76329262d10e60f4ad67172f8a566855c (diff)
downloadCMake-4d85365307975cfdb07e824b46b76da5aed4ed1e.zip
CMake-4d85365307975cfdb07e824b46b76da5aed4ed1e.tar.gz
CMake-4d85365307975cfdb07e824b46b76da5aed4ed1e.tar.bz2
Tests: Fix make capability selection for empty CMAKE_TEST_MAKEPROGRAM
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r--Tests/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 73f880f..5fde091 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -52,7 +52,7 @@ if(BUILD_TESTING)
endif()
set(MAKE_IS_GNU )
- if(${CMAKE_TEST_MAKEPROGRAM} MATCHES make)
+ if(CMAKE_TEST_MAKEPROGRAM MATCHES make)
execute_process(COMMAND ${CMAKE_TEST_MAKEPROGRAM} no_such_target --version
RESULT_VARIABLE res OUTPUT_VARIABLE out ERROR_VARIABLE out)
if("${res}" STREQUAL "0")
@@ -64,8 +64,8 @@ if(BUILD_TESTING)
# some old versions of make simply cannot handle spaces in paths
if (MAKE_IS_GNU OR
- "${CMAKE_TEST_MAKEPROGRAM}" MATCHES "nmake|gmake|wmake" OR
- "${CMAKE_TEST_GENERATOR}" MATCHES "Visual Studio|XCode|Borland")
+ CMAKE_TEST_MAKEPROGRAM MATCHES "nmake|gmake|wmake" OR
+ CMAKE_TEST_GENERATOR MATCHES "Visual Studio|XCode|Borland")
set(MAKE_SUPPORTS_SPACES 1)
else()
set(MAKE_SUPPORTS_SPACES 0)