summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2011-03-04 21:17:10 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2011-03-04 21:17:10 (GMT)
commitdc9965f9a05f23615300c6ffa00b1b35b8afd58e (patch)
treed5e12af25e998943e503597f0ea78ba9996b5af4 /Tests
parente4d4dfc6ef2cfaac34d8097da016f12a07113a3f (diff)
downloadCMake-dc9965f9a05f23615300c6ffa00b1b35b8afd58e.zip
CMake-dc9965f9a05f23615300c6ffa00b1b35b8afd58e.tar.gz
CMake-dc9965f9a05f23615300c6ffa00b1b35b8afd58e.tar.bz2
CPackRPM do not run test if build dir contains space
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index b27477c..ad1ef60 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -566,9 +566,9 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
set(CPackRun_CPackCommand "-DCPackCommand=${CMAKE_CPACK_COMMAND}")
# set up list of CPack generators
list(APPEND GENLST "ZIP")
- if (CMAKE_SYSTEM_NAME MATCHES "Linux")
+ if (CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT CMAKE_CURRENT_BINARY_DIR MATCHES ".* .*")
find_program(RPMBUILD NAMES rpmbuild)
- endif(CMAKE_SYSTEM_NAME MATCHES "Linux")
+ endif(CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT CMAKE_CURRENT_BINARY_DIR MATCHES ".* .*")
if (RPMBUILD)
list(APPEND GENLST "RPM")
endif(RPMBUILD)