Opened 8 years ago

Closed 7 years ago

#756 closed enhancement (duplicate)

cmake build shared or static based BUILD_SHARED_LIBS

Reported by: rashadkm Owned by: mloskot
Priority: major Milestone: 3.5.2
Component: Build/Install (cmake) Version: 3.5.0
Severity: Feature Request Keywords:
Cc:

Description

cmake build in geos creates both static and shared libary always.

geos
geos-static

It would be nice if it honors BUILD_SHARED_LIBS option of cmake https://cmake.org/cmake/help/v3.0/variable/BUILD_SHARED_LIBS.html

This is a simple fix in src/CMakeLists.txt. I can provide a patch if that is okay. But I guess there is some reason geos builds both. If so should be allowed with the help of cmake options

ENABLE_SHARED
ENABLE_STATIC

Change History (3)

comment:1 by mloskot, 8 years ago

Please, patch would make wonders. Thanks.

comment:2 by strk, 8 years ago

Milestone: 3.5.13.5.2

Ticket retargeted after milestone closed

comment:3 by mloskot, 7 years ago

Resolution: duplicate
Status: newclosed

Since that is a good idea for the CMake config improvement, I decided to work on it. See #816

Note: See TracTickets for help on using tickets.