Skip to content

Commit

Permalink
Install inl files if DISABLE_GEOS_INLINE is OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
gergondet committed Dec 13, 2019
1 parent e565561 commit e8404cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,13 @@ install(DIRECTORY
"${CMAKE_CURRENT_BINARY_DIR}/include/geos"
DESTINATION include
FILES_MATCHING PATTERN "*.h")
if(NOT DISABLE_GEOS_INLINE)
install(DIRECTORY
"${CMAKE_CURRENT_LIST_DIR}/include/geos"
"${CMAKE_CURRENT_BINARY_DIR}/include/geos"
DESTINATION include
FILES_MATCHING PATTERN "*.inl")
endif()
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/capi/geos_c.h"
DESTINATION include)

Expand Down
6 changes: 5 additions & 1 deletion include/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
# by the Free Software Foundation.
# See the COPYING file for more information.
################################################################################
file(GLOB_RECURSE _headers ${CMAKE_CURRENT_LIST_DIR}/*.h CONFIGURE_DEPEND)
if(DISABLE_GEOS_INLINE)
file(GLOB_RECURSE _headers ${CMAKE_CURRENT_LIST_DIR}/*.h CONFIGURE_DEPEND)
else()
file(GLOB_RECURSE _headers ${CMAKE_CURRENT_LIST_DIR}/*.h ${CMAKE_CURRENT_LIST_DIR}/*.inl CONFIGURE_DEPEND)
endif()
target_sources(geos PRIVATE ${_headers})
unset(_headers)

Expand Down

0 comments on commit e8404cc

Please sign in to comment.