mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 13:24:07 +00:00
Add optional compilation of osm2pgsl
This commit is contained in:
@@ -39,14 +39,17 @@ set(BUILD_DOCS on CACHE BOOL "Build documentation")
|
|||||||
set(BUILD_SERVER on CACHE BOOL "Build API server")
|
set(BUILD_SERVER on CACHE BOOL "Build API server")
|
||||||
set(BUILD_MODULE on CACHE BOOL "Build PostgreSQL module")
|
set(BUILD_MODULE on CACHE BOOL "Build PostgreSQL module")
|
||||||
set(BUILD_NOMINATIM on CACHE BOOL "Build Nominatim executable")
|
set(BUILD_NOMINATIM on CACHE BOOL "Build Nominatim executable")
|
||||||
|
set(BUILD_OSM2PGSQL on CACHE BOOL "Build osm2pgsql")
|
||||||
|
|
||||||
if (BUILD_SERVER)
|
if (BUILD_SERVER)
|
||||||
if (NOT EXISTS "${CMAKE_SOURCE_DIR}/osm2pgsql/CMakeLists.txt")
|
if (BUILD_OSM2PGSQL)
|
||||||
message(FATAL_ERROR "The osm2pgsql directory is empty.\
|
if (NOT EXISTS "${CMAKE_SOURCE_DIR}/osm2pgsql/CMakeLists.txt")
|
||||||
Did you forget to check out Nominatim recursively?\
|
message(FATAL_ERROR "The osm2pgsql directory is empty.\
|
||||||
\nTry updating submodules with: git submodule update --init")
|
Did you forget to check out Nominatim recursively?\
|
||||||
|
\nTry updating submodules with: git submodule update --init")
|
||||||
|
endif()
|
||||||
|
add_subdirectory(osm2pgsql)
|
||||||
endif()
|
endif()
|
||||||
add_subdirectory(osm2pgsql)
|
|
||||||
|
|
||||||
find_program(PYOSMIUM pyosmium-get-changes)
|
find_program(PYOSMIUM pyosmium-get-changes)
|
||||||
if (NOT EXISTS "${PYOSMIUM}")
|
if (NOT EXISTS "${PYOSMIUM}")
|
||||||
|
|||||||
Reference in New Issue
Block a user