mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +00:00
[CMAKE]
- 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:
parent
af5540c434
commit
1a194db4e7
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue