mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-03 05:08:47 -06:00
Merge topic 'rpm_run_tests_on_other_platforms'
8c0474cd CPackRPM: run tests on more platforms than just Linux
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user