Skip to content

Commit

Permalink
cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
WarmUpTill committed Feb 14, 2024
1 parent 69a9302 commit a730e24
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmake/common/advss_helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,10 @@ function(setup_advss_plugin target)
get_target_property(ADVSS_BINARY_DIR advanced-scene-switcher-lib BINARY_DIR)

if(OS_MACOS)
set(_INSTALL_RPATH "@loader_path" "@loader_path/..")
set_target_properties(${target} PROPERTIES INSTALL_RPATH
"${_INSTALL_RPATH}")
set(_COMMAND
"${CMAKE_INSTALL_NAME_TOOL} -add_rpath @loader_path \\\"$<TARGET_FILE:${target}>\\\""
)
install(CODE "execute_process(COMMAND /bin/sh -c \"${_COMMAND}\")")
endif()

# Set up include directories for headers generated by Qt
Expand Down

0 comments on commit a730e24

Please sign in to comment.