X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/745ae02f477e6f262041e9dd5d83f3b880aa79c6..a3ce89aeff1f15b4bacb029828759c47ff9fb518:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 02bc490f..691c9adc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,6 +97,17 @@ endif() #----------------------------------------------------------------------------- if (BUILD_IMPORTER) + find_file(COUNTRY_GRID_FILE country_osm_grid.sql.gz + PATHS ${PROJECT_SOURCE_DIR}/data + NO_DEFAULT_PATH + DOC "Location of the country grid file." + ) + + if (NOT COUNTRY_GRID_FILE) + message(FATAL_ERROR "\nYou need to download the country_osm_grid first:\n" + " wget -O ${PROJECT_SOURCE_DIR}/data/country_osm_grid.sql.gz https://www.nominatim.org/data/country_grid.sql.gz") + endif() + set(CUSTOMSCRIPTS check_import_finished.php country_languages.php @@ -221,7 +232,7 @@ if (BUILD_IMPORTER) install(DIRECTORY lib-sql DESTINATION ${NOMINATIM_LIBDIR}) install(FILES data/country_name.sql - data/country_osm_grid.sql.gz + ${COUNTRY_GRID_FILE} data/words.sql DESTINATION ${NOMINATIM_DATADIR}) endif()