Author: akhaldi
Date: Sat Jun 4 23:45:11 2011
New Revision: 52085
URL:
http://svn.reactos.org/svn/reactos?rev=52085&view=rev
Log:
[CMAKE]
* Fix unix build. We need to quote the file paths in reactos.dff for cabman to parse them
correctly. Dedicated to Arty.
Modified:
branches/cmake-bringup/CMakeMacros.cmake
Modified: branches/cmake-bringup/CMakeMacros.cmake
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/CMakeMacros.cmake…
==============================================================================
--- branches/cmake-bringup/CMakeMacros.cmake [iso-8859-1] (original)
+++ branches/cmake-bringup/CMakeMacros.cmake [iso-8859-1] Sat Jun 4 23:45:11 2011
@@ -150,7 +150,11 @@
else()
#add it in reactos.cab
dir_to_num(${_CD_DESTINATION} _num)
- file(APPEND ${REACTOS_BINARY_DIR}/boot/bootdata/packages/reactos.dff.dyn
"${_CD_FILE} ${_num}\n")
+ if(CMAKE_HOST_SYSTEM_NAME MATCHES Windows)
+ file(APPEND ${REACTOS_BINARY_DIR}/boot/bootdata/packages/reactos.dff.dyn
"${_CD_FILE} ${_num}\n")
+ else()
+ file(APPEND ${REACTOS_BINARY_DIR}/boot/bootdata/packages/reactos.dff.dyn
"\"${_CD_FILE}\" ${_num}\n")
+ endif()
if(_CD_TARGET)
#manage dependency
add_dependencies(reactos_cab ${_CD_TARGET})