Skip to content

Commit

Permalink
Remove unnecessary set_target_properties since we now just do it manu…
Browse files Browse the repository at this point in the history
…ally with install_name_tool
  • Loading branch information
adamdempsey90 committed Jan 18, 2025
1 parent c134eb0 commit a412b54
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,6 @@ if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)

# Bake in rpath to rebound on mac
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
set_target_properties(artemis PROPERTIES
BUILD_RPATH "${CMAKE_BINARY_DIR}/rebound/"
INSTALL_RPATH "@executable_path/../rebound"
INSTALL_RPATH_USE_LINK_PATH TRUE
)
add_custom_command(TARGET artemis POST_BUILD
COMMAND install_name_tool -add_rpath @executable_path/../rebound $<TARGET_FILE:artemis>
COMMAND install_name_tool -change librebound.so @rpath/librebound.so $<TARGET_FILE:artemis>
Expand Down

0 comments on commit a412b54

Please sign in to comment.