cmake: Fix RPATH on Linux for frontend-tools to find obs-scripting

This will fix frontend-tools not being able to find the obs-scripting
library when OBS is compiled as a portable application.
master
PatTheMav 2022-07-09 21:00:05 +02:00 committed by Ryan Foster
parent ab21c7e5b0
commit c4f12f9055
1 changed files with 2 additions and 2 deletions

View File

@ -93,8 +93,8 @@ macro(setup_obs_project)
set(OBS_DATA_PATH "../../${OBS_DATA_DESTINATION}")
set(OBS_SCRIPT_PLUGIN_PATH "../../${OBS_SCRIPT_PLUGIN_DESTINATION}")
set(CMAKE_INSTALL_RPATH
"$ORIGIN/" "${CMAKE_INSTALL_PREFIX}/${OBS_LIBRARY_DESTINATION}")
set(CMAKE_INSTALL_RPATH "$ORIGIN/"
"${ORIGIN}/../../${OBS_LIBRARY_DESTINATION}")
endif()
if(BUILD_FOR_PPA)