Skip to content

Commit a546399

Browse files
committed
test: use RPATH $ORIGIN on Linux
1 parent 8e20fbd commit a546399

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ if(UNIX)
264264
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32 -march=i686")
265265
endif()
266266
string(REPLACE "-DNDEBUG" "" CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
267-
set(CMAKE_INSTALL_RPATH "$ORIGIN/${DFHACK_LIBRARY_DESTINATION}")
267+
set(CMAKE_INSTALL_RPATH "$ORIGIN")
268268
elseif(MSVC)
269269
# for msvc, tell it to always use 8-byte pointers to member functions to avoid confusion
270270
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /vmg /vmm /MP")

0 commit comments

Comments
 (0)