summaryrefslogtreecommitdiffstats
path: root/Tests/FindPackageModeMakefileTest
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-02-19 14:10:44 (GMT)
committerBrad King <brad.king@kitware.com>2016-02-19 14:10:44 (GMT)
commitc05678ad2873bc0ee9070c9eab181242c3e115a0 (patch)
treeccc93a6430d60525b57b9510f1cb7d1021e9e1d2 /Tests/FindPackageModeMakefileTest
parent29c266eb56e4e17894574f8a838a372f809d671e (diff)
downloadCMake-c05678ad2873bc0ee9070c9eab181242c3e115a0.zip
CMake-c05678ad2873bc0ee9070c9eab181242c3e115a0.tar.gz
CMake-c05678ad2873bc0ee9070c9eab181242c3e115a0.tar.bz2
Tests: Add option to disable FindPackageModeMakefileTest
This test does not work in all environments, so add an option to disable it.
Diffstat (limited to 'Tests/FindPackageModeMakefileTest')
-rw-r--r--Tests/FindPackageModeMakefileTest/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/FindPackageModeMakefileTest/CMakeLists.txt b/Tests/FindPackageModeMakefileTest/CMakeLists.txt
index 8e21c32..56fcc5d 100644
--- a/Tests/FindPackageModeMakefileTest/CMakeLists.txt
+++ b/Tests/FindPackageModeMakefileTest/CMakeLists.txt
@@ -1,6 +1,7 @@
-if(UNIX AND "${CMAKE_GENERATOR}" MATCHES "Makefile")
+if(UNIX AND "${CMAKE_GENERATOR}" MATCHES "Makefile" AND
+ NOT CMake_TEST_NO_FindPackageModeMakefileTest)
# Test whether the make is GNU make, and only add the test in this case,
# since the configured makefile in this test uses $(shell ...), which