Merge topic 'rpm_run_tests_on_other_platforms'

8c0474cd CPackRPM: run tests on more platforms than just Linux
This commit is contained in:
Brad King 2015-02-23 10:26:46 -05:00 committed by CMake Topic Stage
commit 67fa9462ad
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")