summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDomen Vrankar <domen.vrankar@gmail.com>2015-02-22 23:43:09 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-23 15:19:29 (GMT)
commit8c0474cd2c0b3ad589950bc60d9af22f26111717 (patch)
treec4614e6e64da09a5de232ff33b4a388789393c6a
parent5cf629c3bc0c7a15d363d6d60e8c3cc04c0618f2 (diff)
downloadCMake-8c0474cd2c0b3ad589950bc60d9af22f26111717.zip
CMake-8c0474cd2c0b3ad589950bc60d9af22f26111717.tar.gz
CMake-8c0474cd2c0b3ad589950bc60d9af22f26111717.tar.bz2
CPackRPM: run tests on more platforms than just Linux
Lift the restriction that limits use of CPackRPM tests to Linux OS only because RPM can also be used on e.g. AIX which is Unix OS.
-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")