Skip to content

Commit

Permalink
Move GNUInstallDirs under the project() definition to avoid cmake war…
Browse files Browse the repository at this point in the history
…ning
  • Loading branch information
pramsey committed Sep 30, 2021
1 parent 97c55f5 commit 3972990
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
message(STATUS "GEOS: Run-time output: ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
message(STATUS "GEOS: Archives output: ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")

include(CMakePackageConfigHelpers)
include(GNUInstallDirs)

#-----------------------------------------------------------------------------
# Version
#-----------------------------------------------------------------------------
Expand Down Expand Up @@ -144,6 +141,13 @@ message(STATUS "GEOS: Version ${GEOS_VERSION}")
message(STATUS "GEOS: C API Version ${CAPI_VERSION}")
message(STATUS "GEOS: JTS port ${JTS_PORT}")

#-----------------------------------------------------------------------------
# Install directories
#-----------------------------------------------------------------------------

include(GNUInstallDirs)
include(CMakePackageConfigHelpers)

#-----------------------------------------------------------------------------
# C++ language version and compilation flags
#-----------------------------------------------------------------------------
Expand Down

0 comments on commit 3972990

Please sign in to comment.