[CMake] CMake fixup_bundle DESTDIR problem

Randolph M. Fritz rmfritz3 at gmail.com
Wed Jun 27 00:52:08 EDT 2018


Under what circumstances does cmake place a fixup_bundle command in
dependencies.cmake? I've got a problem where fixup_bundle is being created
without reference to DESTDIR, and install fails when DESTDIR is used.

This is the generated dependencies.cmake file:

function(gp_item_default_embedded_path_override path)
  set(path "@executable_path" PARENT_SCOPE)
endfunction()

include(BundleUtilities)

set(plugins "")
list(APPEND plugins
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/plugins/imageformats/libqgif.dylib")
list(APPEND plugins
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/plugins/imageformats/libqico.dylib")
list(APPEND plugins
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/plugins/imageformats/libqjpeg.dylib")
list(APPEND plugins
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/plugins/imageformats/libqtiff.dylib")
list(APPEND plugins
"$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/plugins/platforms/libqcocoa.dylib")

fixup_bundle("${CMAKE_INSTALL_PREFIX}/bin/rvu" "${plugins}"
"/opt/local/libexec/qt5/lib;/opt/local/lib")



-- 
Randolph M. Fritz || +1 206 659-8617 || rmfritz3 at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180626/561f05e8/attachment.html>


More information about the CMake mailing list