Skip to content

Commit 6fe04ac

Browse files
author
peng.li24
committed
fix: remove hard Depends on libgeos-dev from deb package (header-only lib)
1 parent 3f012ba commit 6fe04ac

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ set(CPACK_DEB_COMPONENT_INSTALL OFF)
7272
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "array2d")
7373
set(CPACK_DEBIAN_PACKAGE_SECTION "libdevel")
7474
set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
75-
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libgeos-dev")
75+
# No hard Depends — shapelycpp is header-only; GEOS is only needed when
76+
# compiling tests or downstream projects that use GEOS features.
7677
set(CPACK_DEBIAN_FILE_NAME "shapelycpp-dev-${CPACK_PACKAGE_VERSION}-Linux.deb")
7778
set(CPACK_PACKAGING_INSTALL_PREFIX "/usr")
7879

@@ -93,4 +94,4 @@ endif()
9394
message(STATUS "shapelycpp v${PROJECT_VERSION} (header-only C++ library)")
9495
message(STATUS " C++ Standard: ${CMAKE_CXX_STANDARD}")
9596
message(STATUS " DEB: make deb → shapelycpp-dev-${CPACK_PACKAGE_VERSION}-Linux.deb")
96-
message(STATUS " Install: sudo apt-get install -y libgeos-dev")
97+
message(STATUS " GEOS (optional): install geos-local or libgeos-dev if downstream code links GEOS")

0 commit comments

Comments
 (0)