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:
parent
5cf629c3bc
commit
8c0474cd2c
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue