Skip to content

Commit

Permalink
cmake: add rpath to SuperCollider target
Browse files Browse the repository at this point in the history
  • Loading branch information
dyfer committed Mar 10, 2021
1 parent fb80a48 commit 8c1e70f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editors/sc-ide/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ target_link_libraries( libscide PUBLIC boost_system_lib boost_filesystem_lib)
include_directories(${boost_include_dirs})

# This makes sclang/scide work with a Qt installation at a fixed location.
set_property(TARGET libscide PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE)
set_property(TARGET libscide SuperCollider PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE)

if(APPLE)
target_link_libraries( libscide PUBLIC "-framework CoreServices -framework Foundation")
Expand All @@ -365,7 +365,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
target_link_libraries(libscide PUBLIC ${X11_X11_LIB})

# This makes sclang/scide work with a Qt installation at a fixed location.
set_property(TARGET libscide PROPERTY INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
set_property(TARGET libscide SuperCollider PROPERTY INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
endif()

if(PTHREADS_FOUND)
Expand Down

0 comments on commit 8c1e70f

Please sign in to comment.