fix compilation error (cannot find -lpq)

This commit is contained in:
Ludovic Delauné
2017-02-23 10:17:25 +01:00
parent 66d7f1a058
commit a933421860

View 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")