Skip to content

Commit

Permalink
Set RPATH on Linux, to avoid needing to futz w/ LD_LIBRARY_PATH.
Browse files Browse the repository at this point in the history
This may need to be adjusted for distro packaging. >_>
  • Loading branch information
kitlith committed Feb 22, 2023
1 parent 2df02b7 commit 7379ba7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ include_directories(include)

add_subdirectory(rust_part)

set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
set(CMAKE_INSTALL_RPATH $ORIGIN)

# Project
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")
target_link_libraries("${PROJECT_NAME}" PRIVATE "${OPENVR_LIB}" fmt::fmt protobuf::libprotobuf simdjson::simdjson rust_part)
Expand Down

0 comments on commit 7379ba7

Please sign in to comment.