Merge topic 'rpm_run_tests_on_other_platforms'
8c0474cd CPackRPM: run tests on more platforms than just Linux
This commit is contained in:
commit
67fa9462ad
@ -104,7 +104,7 @@ if(BUILD_TESTING)
|
|||||||
|
|
||||||
# Look for rpmbuild to use for tests.
|
# Look for rpmbuild to use for tests.
|
||||||
# The tool does not work with spaces in the path.
|
# 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)
|
find_program(RPMBUILD_EXECUTABLE NAMES rpmbuild)
|
||||||
else()
|
else()
|
||||||
set(RPMBUILD_EXECUTABLE "RPMBUILD_EXECUTABLE-NOTFOUND")
|
set(RPMBUILD_EXECUTABLE "RPMBUILD_EXECUTABLE-NOTFOUND")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user