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.
This commit is contained in:
Domen Vrankar 2015-02-23 00:43:09 +01:00 committed by Brad King
parent 5cf629c3bc
commit 8c0474cd2c
1 changed files with 1 additions and 1 deletions

View File

@ -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")