mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
On linux set the rpath to $ORIGIN so that librenderdoc.so will be found
* Distributions will just be a tarball with binaries and library, so if the user doesn't install it somewhere in LD_LIBRARY_PATH, we want it to still work.
This commit is contained in:
@@ -35,8 +35,13 @@ endif()
|
||||
if(ANDROID)
|
||||
add_library(renderdoccmd SHARED ${sources})
|
||||
else()
|
||||
set(CMAKE_SKIP_BUILD_RPATH TRUE)
|
||||
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
||||
set(CMAKE_INSTALL_RPATH "$ORIGIN/")
|
||||
|
||||
add_executable(renderdoccmd ${sources})
|
||||
endif()
|
||||
|
||||
target_include_directories(renderdoccmd ${includes})
|
||||
target_link_libraries(renderdoccmd ${libraries})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user