X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b3f1f45f97ebbe378be8e9e3b09f90aa5e22c0e1..6a4192d3d18e9db2dce7d8f9f1b229d5ae9f7c6f:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index a5034786..17b5cd72 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,14 +45,14 @@ if (NOT ONLY_DOCS) endif() add_subdirectory(osm2pgsql) - find_package(Threads REQUIRED) - unset(PostgreSQL_TYPE_INCLUDE_DIR CACHE) set(PostgreSQL_TYPE_INCLUDE_DIR "/usr/include/") find_package(PostgreSQL REQUIRED) include_directories(${PostgreSQL_INCLUDE_DIRS}) link_directories(${PostgreSQL_LIBRARY_DIRS}) + find_package(PythonInterp 3) + find_program(PYOSMIUM pyosmium-get-changes) if (NOT EXISTS "${PYOSMIUM}") set(PYOSMIUM_PATH "") @@ -72,13 +72,6 @@ if (NOT ONLY_DOCS) message(FATAL_ERROR "Postgresql server package not found.") endif() - find_package(ZLIB REQUIRED) - - find_package(BZip2 REQUIRED) - - find_package(LibXml2 REQUIRED) - include_directories(${LIBXML2_INCLUDE_DIR}) - # Setting PHP binary variable as to command line (prevailing) or auto detect if (NOT PHP_BIN) find_program (PHP_BIN php) @@ -183,7 +176,6 @@ endif() if (NOT ONLY_DOCS) add_subdirectory(module) - add_subdirectory(nominatim) endif() add_subdirectory(docs)