Skip to content

Commit 2625285

Browse files
fix: properly set rpath to $ORIGIN in standalone builds
1 parent 09f19a5 commit 2625285

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ option(VPKEDIT_USE_LTO "Build VPKEdit with link-time optimization enabled" OFF)
4242
# Global CMake options
4343
if(PROJECT_IS_TOP_LEVEL)
4444
# Set proper runpath
45-
set(CMAKE_SKIP_BUILD_RPATH OFF)
45+
set(CMAKE_SKIP_RPATH OFF)
4646
set(CMAKE_BUILD_RPATH_USE_ORIGIN ON)
47+
set(CMAKE_BUILD_RPATH $ORIGIN)
4748
set(CMAKE_INSTALL_RPATH $ORIGIN)
4849

4950
# Compile with PIC

0 commit comments

Comments
 (0)