- use relative paths for reactos.dff generation.
May fix Pierre's issue, but a deeper fix is needed.

svn path=/trunk/; revision=55632
This commit is contained in:
Jérôme Gardou 2012-02-16 13:03:29 +00:00
parent af5540c434
commit 1a194db4e7

View file

@ -154,11 +154,13 @@ function(add_cd_file)
else()
#add it in reactos.cab
dir_to_num(${_CD_DESTINATION} _num)
file(RELATIVE_PATH __relative_file ${REACTOS_SOURCE_DIR} ${_CD_FILE})
if(CMAKE_HOST_SYSTEM_NAME MATCHES Windows)
file(APPEND ${REACTOS_BINARY_DIR}/boot/bootdata/packages/reactos.dff.dyn "${_CD_FILE} ${_num}\n")
file(APPEND ${REACTOS_BINARY_DIR}/boot/bootdata/packages/reactos.dff.dyn "${__relative_file} ${_num}\n")
else()
file(APPEND ${REACTOS_BINARY_DIR}/boot/bootdata/packages/reactos.dff.dyn "\"${_CD_FILE}\" ${_num}\n")
file(APPEND ${REACTOS_BINARY_DIR}/boot/bootdata/packages/reactos.dff.dyn "\"${__relative_file}\" ${_num}\n")
endif()
unset(__relative_file)
if(_CD_TARGET)
#manage dependency
add_dependencies(reactos_cab ${_CD_TARGET})