Author: akhaldi
Date: Sun Jun 5 18:00:09 2011
New Revision: 52093
URL:
http://svn.reactos.org/svn/reactos?rev=52093&view=rev
Log:
[CMAKE]
* Fix cab creation on unix.
Modified:
trunk/reactos/CMakeMacros.cmake
Modified: trunk/reactos/CMakeMacros.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/CMakeMacros.cmake?rev=5209…
==============================================================================
--- trunk/reactos/CMakeMacros.cmake [iso-8859-1] (original)
+++ trunk/reactos/CMakeMacros.cmake [iso-8859-1] Sun Jun 5 18:00:09 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})