From 8c0474cd2c0b3ad589950bc60d9af22f26111717 Mon Sep 17 00:00:00 2001 From: Domen Vrankar Date: Mon, 23 Feb 2015 00:43:09 +0100 Subject: [PATCH] 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. --- Tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index cb45e79d3..4d3aeafd2 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")