Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,18 @@ if(BUILD_SHARED_LIBS)
PRIVATE $<$<BOOL:${WIN32}>:GEOS_DLL_EXPORT>)

set_target_properties(geos_c PROPERTIES VERSION ${CAPI_VERSION})

# See https://github.com/libgeos/geos/issues/1435
if(NOT DEFINED CMAKE_INSTALL_RPATH)
# Use relative rpath
if(APPLE)
set_target_properties(geos_c PROPERTIES
INSTALL_RPATH "@loader_path")
else()
set_target_properties(geos_c PROPERTIES INSTALL_RPATH "\$ORIGIN")
endif()
endif()

if(NOT WIN32 OR MINGW)
set_target_properties(geos_c PROPERTIES SOVERSION ${CAPI_VERSION_MAJOR})
endif()
Expand Down
Loading