From: Ludovic Delauné Date: Thu, 23 Feb 2017 09:17:25 +0000 (+0100) Subject: fix compilation error (cannot find -lpq) X-Git-Tag: v3.0.0~69^2 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/a9334218603f2477ddd94786099a71f6d8cf6313 fix compilation error (cannot find -lpq) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 44574610..28600018 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,8 @@ 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_program(OSMOSIS osmosis) if (NOT EXISTS "${OSMOSIS}") set(OSMOSIS_PATH "/nonexistent")