Merge pull request #2775 from jasp00/zyn-runpath
Fix regression in handling RPATH for RemoteZynAddSubFx
This commit is contained in:
@@ -161,10 +161,9 @@ IF(WIN32)
|
||||
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/zynaddsubfx.rc")
|
||||
ENDIF(WIN32)
|
||||
|
||||
IF(NOT LMMS_BUILD_LINUX)
|
||||
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${PLUGIN_DIR}")
|
||||
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||
ENDIF()
|
||||
# Use libraries in non-standard directories (e.g., another version of Qt)
|
||||
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||
|
||||
ADD_EXECUTABLE(RemoteZynAddSubFx RemoteZynAddSubFx.cpp "${WINRC}")
|
||||
INSTALL(TARGETS RemoteZynAddSubFx RUNTIME DESTINATION "${PLUGIN_DIR}")
|
||||
|
||||
|
||||
@@ -72,6 +72,13 @@ IF(NOT ("${OGGVORBIS_INCLUDE_DIR}" STREQUAL ""))
|
||||
INCLUDE_DIRECTORIES("${OGGVORBIS_INCLUDE_DIR}")
|
||||
ENDIF()
|
||||
|
||||
# Use libraries in non-standard directories (e.g., another version of Qt)
|
||||
IF(LMMS_BUILD_LINUX)
|
||||
LINK_LIBRARIES(-Wl,--enable-new-dtags)
|
||||
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
||||
ENDIF()
|
||||
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||
|
||||
# ADD_LIBRARY's OBJECT is only supported in CMake >=2.8.8
|
||||
IF(CMAKE_VERSION VERSION_GREATER "2.8.7")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user