File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff 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 ()
233235endif ()
234236
235237include (CTest)
You can’t perform that action at this time.
0 commit comments