]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix compilation error (cannot find -lpq)
authorLudovic Delauné <ludovic.delaune@oslandia.com>
Thu, 23 Feb 2017 09:17:25 +0000 (10:17 +0100)
committerLudovic Delauné <ludovic.delaune@oslandia.com>
Thu, 23 Feb 2017 09:17:25 +0000 (10:17 +0100)
CMakeLists.txt

index 44574610674aa30f3190368ea3fb4dabb246a79d..28600018e3f87235844e2afa77b1cd9cffd0d583 100644 (file)
@@ -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")