[cmake-commits] alex committed CPackRPM.cmake 1.2 1.3

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Aug 29 16:31:48 EDT 2007


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv1694

Modified Files:
	CPackRPM.cmake 
Log Message:

ENH: fail with error if trying to create a RPM stating that rpmbuild can't
handle spaces

Alex


Index: CPackRPM.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CPackRPM.cmake,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- CPackRPM.cmake	17 Aug 2007 13:13:15 -0000	1.2
+++ CPackRPM.cmake	29 Aug 2007 20:31:46 -0000	1.3
@@ -17,6 +17,10 @@
   MESSAGE(FATAL_ERROR "RPM package requires rpmbuild executable")
 ENDIF(NOT RPMBUILD_EXECUTABLE)
 
+IF(CPACK_TOPLEVEL_DIRECTORY MATCHES ".* .*")
+  MESSAGE(FATAL_ERROR "${RPMBUILD_EXECUTABLE} can't handle paths with spaces, use a build directory without spaces for building RPMs.")
+ENDIF(CPACK_TOPLEVEL_DIRECTORY MATCHES ".* .*")
+
 # If rpmbuild is found 
 # we try to discover alien since we may be on non RPM distro like Debian.
 # In this case we may try to to use more advanced features



More information about the Cmake-commits mailing list