Skip to content

Commit

Permalink
Set rpath correctly when installing the built binaries. (#277)
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Young <[email protected]>
  • Loading branch information
youngpm and Patrick Young authored Jan 12, 2022
1 parent 07bb2d2 commit ecf59e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ check_function_exists("symlink" HAVE_SYMLINK)
check_function_exists ("timegm" HAVE_TIMEGM)
check_function_exists ("strptime" HAVE_STRPTIME)

set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
set(CMAKE_SKIP_BUILD_RPATH FALSE)
if(APPLE)
set(CMAKE_MACOSX_RPATH ON)
endif()

set(CMAKE_LINK_INTERFACE_LIBRARY "")

file(GLOB mapcache_SOURCES lib/*.c )
Expand Down

0 comments on commit ecf59e4

Please sign in to comment.