From c05678ad2873bc0ee9070c9eab181242c3e115a0 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 19 Feb 2016 09:10:44 -0500 Subject: Tests: Add option to disable FindPackageModeMakefileTest This test does not work in all environments, so add an option to disable it. --- Tests/FindPackageModeMakefileTest/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v0.12