Ensure 3rd party libraries are writable.

This patch fixes CMake.Install when Qt4 is installed read-only by packaging
system like Homebrew.
This commit is contained in:
Nicolas Despres 2012-07-06 12:49:04 +02:00 committed by Peter Kümmel
parent a7b4e3a57b
commit aff0029ee3
1 changed files with 5 additions and 4 deletions

View File

@ -112,6 +112,7 @@ ELSE(NOT QT4_FOUND)
endif(APPLE)
install(CODE "
include(\"${CMake_SOURCE_DIR}/Modules/BundleUtilities.cmake\")
set(BU_CHMOD_BUNDLE_ITEMS ON)
fixup_bundle(\"${fixup_exe}\" \"\" \"${QT_LIBRARY_DIR};${QT_BINARY_DIR}\")
")
endif(APPLE OR WIN32)