[geos-commits] [SCM] GEOS branch main updated. 4150b856e18b4f33460dbe12b23eea449af8095b
git at osgeo.org
git at osgeo.org
Wed Jun 17 12:36:00 PDT 2026
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".
The branch, main has been updated
via 4150b856e18b4f33460dbe12b23eea449af8095b (commit)
from 3ffdc29d3973d77d2b3505557ed793b3c4ca8111 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4150b856e18b4f33460dbe12b23eea449af8095b
Author: Sandro Santilli <strk at kbt.io>
Date: Wed Jun 17 21:35:42 2026 +0200
Ensure rpath is used for libgeos_c.so (#1436)
* Ensure rpath is used for libgeos_c.so
This ensures each C library links to its corresponding C++ library
Closes GH-1435
* Allow CMAKE_INSTALL_RPATH override from commandline, handle MacOS
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d114245cf..541288b93 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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()
-----------------------------------------------------------------------
Summary of changes:
CMakeLists.txt | 12 ++++++++++++
1 file changed, 12 insertions(+)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list