Skip to content

Commit 7379ba7

Browse files
committed
Set RPATH on Linux, to avoid needing to futz w/ LD_LIBRARY_PATH.
This may need to be adjusted for distro packaging. >_>
1 parent 2df02b7 commit 7379ba7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ include_directories(include)
2020

2121
add_subdirectory(rust_part)
2222

23+
set(CMAKE_SKIP_BUILD_RPATH FALSE)
24+
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
25+
set(CMAKE_INSTALL_RPATH $ORIGIN)
26+
2327
# Project
2428
add_executable("${PROJECT_NAME}" "src/main.cpp" "src/pathtools_excerpt.cpp" "src/pathtools_excerpt.h" "src/matrix_utils.cpp" "src/matrix_utils.h" "src/bridge.cpp" "src/bridge.hpp" "src/setup.cpp" "src/setup.hpp" "ProtobufMessages.proto" "src/cxx_test.cpp")
2529
target_link_libraries("${PROJECT_NAME}" PRIVATE "${OPENVR_LIB}" fmt::fmt protobuf::libprotobuf simdjson::simdjson rust_part)

0 commit comments

Comments
 (0)