Merge pull request #644 from ldgeo/master

fix compilation error (cannot find -lpq)
This commit is contained in:
Sarah Hoffmann 2017-02-25 09:45:35 +01:00 committed by GitHub
commit 0916d72ddf

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