Skip to content

Commit 78ec0f3

Browse files
committed
CMake: skip adjusting the install rpath when CMAKE_INSTALL_RPATH is set
1 parent 6f6b3fe commit 78ec0f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/LSLCMake.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ function(installLSLApp target)
106106
else()
107107
set(LIBDIR "../LSL/lib")
108108
endif()
109-
if(APPLE)
109+
if(APPLE AND NOT CMAKE_INSTALL_RPATH)
110110
set_property(TARGET ${target} APPEND
111111
PROPERTY INSTALL_RPATH "@executable_path/;@executable_path/${LIBDIR}")
112-
elseif(UNIX)
112+
elseif(UNIX AND NOT CMAKE_INSTALL_RPATH)
113113
set_property(TARGET ${target}
114114
PROPERTY INSTALL_RPATH "\$ORIGIN:\$ORIGIN/${LIBDIR}")
115115
endif()

0 commit comments

Comments
 (0)