Skip to content

Commit ef0910b

Browse files
committed
LG WebOS: Remove rpath logic
1 parent f7f4d39 commit ef0910b

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

CMakeLists.txt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,16 @@ if(OPTION_PACKAGE_DEPENDENCIES)
222222
message(FATAL_ERROR "OPTION_PACKAGE_DEPENDENCIES can only work with CMake 3.16+; you are using ${CMAKE_VERSION}")
223223
endif()
224224

225-
# If we are packaging dependencies, we do two things:
226-
# 1) set the RPATH to include $ORIGIN/lib; $ORIGIN (that literal string)
227-
# is a Linux indicator for "path where application is". In CMake, we
228-
# have to do this before add_executable() is executed.
229-
# 2) copy the libraries that we compile against to the "lib" folder.
230-
# This is done in InstallAndPackage.cmake.
231-
set(CMAKE_INSTALL_RPATH "\$ORIGIN/lib")
232-
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
225+
if (NOT WEBOS)
226+
# If we are packaging dependencies, we do two things:
227+
# 1) set the RPATH to include $ORIGIN/lib; $ORIGIN (that literal string)
228+
# is a Linux indicator for "path where application is". In CMake, we
229+
# have to do this before add_executable() is executed.
230+
# 2) copy the libraries that we compile against to the "lib" folder.
231+
# This is done in InstallAndPackage.cmake.
232+
set(CMAKE_INSTALL_RPATH "\$ORIGIN/lib")
233+
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
234+
endif()
233235
endif()
234236

235237
include(CTest)

0 commit comments

Comments
 (0)