summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-13 16:47:47 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-13 16:50:38 (GMT)
commitd891d47434a181f14554622118c39c954d6a9466 (patch)
tree21c452c4418f586c251c1da441dc2346bb7f9557 /Tests/RunCMake
parent0304e545289bb32a43a7c8973d604dad860f360b (diff)
downloadCMake-d891d47434a181f14554622118c39c954d6a9466.zip
CMake-d891d47434a181f14554622118c39c954d6a9466.tar.gz
CMake-d891d47434a181f14554622118c39c954d6a9466.tar.bz2
Tests: Consolidate detection of 'rpmbuild'
Several tests use slight variations of the same logic to enable CPack RPM tests. Consolidate this logic into one check before any tests are added. Look for 'rpmbuild' only on Linux and only when the test build tree does not have spaces in the path. In particular, this will make the result available in time for the RunCMake.CPackRPM test to be activated even if CMake is configured exactly once.
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index 2de82a7..f0426e5 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -195,6 +195,6 @@ add_RunCMake_test(IfacePaths_INCLUDE_DIRECTORIES TEST_DIR IfacePaths)
set(IfacePaths_SOURCES_ARGS -DTEST_PROP=SOURCES)
add_RunCMake_test(IfacePaths_SOURCES TEST_DIR IfacePaths)
-if(RPMBUILD)
+if(RPMBUILD_EXECUTABLE)
add_RunCMake_test(CPackRPM)
endif()