When reading the target executable for prerequisites we must include the DESTDIR, else we might read an already installed file
This commit is contained in:
parent
fec44a8e77
commit
e384c5b677
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ IF (APPLE)
|
|||
INSTALL(CODE "
|
||||
INCLUDE(GetPrerequisites)
|
||||
GET_FILENAME_COMPONENT(DESTDIR \$ENV{DESTDIR} ABSOLUTE)
|
||||
GET_PREREQUISITES(\"${TELLDUS_SERVICE_TARGET_PATH}/${telldus-service_TARGET}\" prereqs 1 0 \"\$\" \"\$\")
|
||||
GET_PREREQUISITES(\"\${DESTDIR}/${TELLDUS_SERVICE_TARGET_PATH}/${telldus-service_TARGET}\" prereqs 1 0 \"\$\" \"\$\")
|
||||
FOREACH(pr \${prereqs})
|
||||
GET_FILENAME_COMPONENT(lib \${pr} NAME)
|
||||
FILE(INSTALL \${pr} DESTINATION ${TELLDUS_SERVICE_TARGET_PATH})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue