Fixed handling RPATH for alternate version of Qt

This commit is contained in:
Javier Serrano Polo
2016-05-18 22:07:52 +02:00
parent 60837ed93b
commit 8c01ba0dc3
2 changed files with 10 additions and 4 deletions

View File

@@ -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}")