Skip to content

Commit

Permalink
Fixes for CMake install
Browse files Browse the repository at this point in the history
  • Loading branch information
colincornaby committed Mar 5, 2023
1 parent fc9e44a commit 6e7052d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Sources/Plasma/Apps/plClient/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,14 @@ if(PLASMA_EXTERNAL_RELEASE)
endif(PLASMA_EXTERNAL_RELEASE)

if(APPLE)
# CMake will attempt to strip rpaths, thus preventing fixup_bundle from finding libraries.
# Not sure why - turning that off.
set_target_properties(plClient PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE)
install(
CODE [[
include("BundleUtilities")
fixup_bundle("${CMAKE_INSTALL_PREFIX}/client/$<TARGET_PROPERTY:plClient,OUTPUT_NAME>.app" "" "${searchDirs}" IGNORE_ITEM Python)
execute_process(COMMAND "codesign" "--remove-signature" "--deep" "-f" "${CMAKE_INSTALL_PREFIX}/client/$<TARGET_PROPERTY:plClient,OUTPUT_NAME>.app")
fixup_bundle("${CMAKE_INSTALL_PREFIX}/client/$<TARGET_FILE_NAME:plClient>.app" "" "${searchDirs}" IGNORE_ITEM Python)
execute_process(COMMAND "codesign" "--remove-signature" "--deep" "-f" "${CMAKE_INSTALL_PREFIX}/client/$<TARGET_FILE_NAME:plClient>.app")
]]
DESTINATION client
)
Expand Down

0 comments on commit 6e7052d

Please sign in to comment.