File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ function(add_libzsync2 NAME BUILD_TYPE)
4141 PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR} /include>"
4242 INTERFACE "$<INSTALL_INTERFACE:include>"
4343 )
44+ set_target_properties ("${NAME} " PROPERTIES INSTALL_RPATH "\$ ORIGIN" )
4445
4546 if (LIBCURL_FOUND)
4647 target_compile_definitions ("${NAME} " PRIVATE HAVE_LIBCURL=1)
@@ -61,12 +62,14 @@ add_executable(zsync2 main.cpp)
6162target_link_libraries (zsync2 PRIVATE libzsync2_standalone args)
6263# TODO: get rid of this
6364target_link_libraries (zsync2 PRIVATE cpr)
65+ set_target_properties (zsync2 PROPERTIES INSTALL_RPATH "\$ ORIGIN/../${CMAKE_INSTALL_LIBDIR} " )
6466
6567## zsyncmake2 executable
6668add_executable (zsyncmake2 make_main.cpp)
6769target_link_libraries (zsyncmake2 PRIVATE libzsync2 args)
6870# TODO: get rid of this
6971target_link_libraries (zsyncmake2 PRIVATE cpr)
72+ set_target_properties (zsyncmake2 PROPERTIES INSTALL_RPATH "\$ ORIGIN/../${CMAKE_INSTALL_LIBDIR} " )
7073
7174# install targets
7275install (
You can’t perform that action at this time.
0 commit comments