Skip to content

Commit ecf59e4

Browse files
youngpmPatrick Young
andauthored
Set rpath correctly when installing the built binaries. (#277)
Co-authored-by: Patrick Young <[email protected]>
1 parent 07bb2d2 commit ecf59e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ check_function_exists("symlink" HAVE_SYMLINK)
5959
check_function_exists ("timegm" HAVE_TIMEGM)
6060
check_function_exists ("strptime" HAVE_STRPTIME)
6161

62+
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
6263
set(CMAKE_SKIP_BUILD_RPATH FALSE)
6364
if(APPLE)
6465
set(CMAKE_MACOSX_RPATH ON)
6566
endif()
67+
6668
set(CMAKE_LINK_INTERFACE_LIBRARY "")
6769

6870
file(GLOB mapcache_SOURCES lib/*.c )

0 commit comments

Comments
 (0)