Put back cmake GEOS_ENABLE_INLINE and get rid of DISABLE_GEOS_INLINE introduced in 9ed254c129
continuous-integration/drone/push Build is passing Details

3.8
Regina Obe 2019-05-22 20:00:56 -04:00
parent 6e0f7cccba
commit 1fb11b298d
1 changed files with 6 additions and 3 deletions

View File

@ -130,11 +130,14 @@ target_compile_features(geos_cxx_flags INTERFACE cxx_std_11)
#-----------------------------------------------------------------------------
# Target geos_cxx_flags: common compilation flags
#-----------------------------------------------------------------------------
option(DISABLE_GEOS_INLINE "Disable inlining" OFF)
if(NOT DISABLE_GEOS_INLINE)
target_compile_definitions(geos_cxx_flags INTERFACE GEOS_INLINE)
option(GEOS_ENABLE_INLINE "Set to OFF|ON (default) to control GEOS compilation with small functions inlining" ON)
if(GEOS_ENABLE_INLINE)
add_definitions(-DGEOS_INLINE)
endif()
message(STATUS
"Setting GEOS compilation with small functions inlining - ${GEOS_ENABLE_INLINE}")
#-----------------------------------------------------------------------------
# Target geos_developer_cxx_flags: developer mode compilation flags
#-----------------------------------------------------------------------------