Another issue, this one cause by the switch to CMake.

The autotools build resulted in libgeos-X.Y.Z.so, which was also its
SONAME, and the libgeos.so symlink to it.

The cmake builds results in libgeos.so.X.Y.Zpre, which is also its
SONAME, and the libgeos.so symlink to it.

The pre-release word should not be part of the filename nor SOVERSION.

The attached patch fixes the issue.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
Description: Don't include pre-release in SONAME.
Author: Bas Couwenberg <sebas...@debian.org>

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -271,8 +271,8 @@ if(BUILD_SHARED_LIBS)
   target_compile_definitions(geos
     PRIVATE $<IF:$<CXX_COMPILER_ID:MSVC>,GEOS_DLL_EXPORT,DLL_EXPORT>)
 
-  set_target_properties(geos PROPERTIES VERSION ${GEOS_VERSION})
-  set_target_properties(geos PROPERTIES SOVERSION ${GEOS_VERSION})
+  set_target_properties(geos PROPERTIES VERSION ${CMAKE_PROJECT_VERSION})
+  set_target_properties(geos PROPERTIES SOVERSION ${CMAKE_PROJECT_VERSION})
 endif()
 
 #-----------------------------------------------------------------------------
_______________________________________________
geos-devel mailing list
geos-devel@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/geos-devel

Reply via email to