summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-23 15:26:46 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-02-23 15:26:46 (GMT)
commit67fa9462adbad2b90b13ba942f2a71c0ea7674c1 (patch)
treedacc7d05bb8b0036b8a6bcbb6d72dd6975500a32
parent6dc9a627b635617870945677b4868e212f4184ed (diff)
parent8c0474cd2c0b3ad589950bc60d9af22f26111717 (diff)
downloadCMake-67fa9462adbad2b90b13ba942f2a71c0ea7674c1.zip
CMake-67fa9462adbad2b90b13ba942f2a71c0ea7674c1.tar.gz
CMake-67fa9462adbad2b90b13ba942f2a71c0ea7674c1.tar.bz2
Merge topic 'rpm_run_tests_on_other_platforms'
8c0474cd CPackRPM: run tests on more platforms than just Linux
-rw-r--r--Tests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index cb45e79..4d3aeaf 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -104,7 +104,7 @@ if(BUILD_TESTING)
# Look for rpmbuild to use for tests.
# The tool does not work with spaces in the path.
- if (CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT CMAKE_CURRENT_BINARY_DIR MATCHES " ")
+ if(NOT CMAKE_CURRENT_BINARY_DIR MATCHES " ")
find_program(RPMBUILD_EXECUTABLE NAMES rpmbuild)
else()
set(RPMBUILD_EXECUTABLE "RPMBUILD_EXECUTABLE-NOTFOUND")