Fix Postgres linking on older CMake

(see 998e4820c9)
This commit is contained in:
sfan5 2022-06-19 14:14:09 +02:00
parent 18f0615002
commit 7fb3b9edd6

@ -86,6 +86,7 @@ if(ENABLE_POSTGRESQL)
if(PostgreSQL_INCLUDE_DIR AND PostgreSQL_LIBRARY)
set(PostgreSQL_FOUND TRUE)
set(PostgreSQL_INCLUDE_DIRS ${PostgreSQL_INCLUDE_DIR})
set(PostgreSQL_LIBRARIES ${PostgreSQL_LIBRARY})
endif()
else()
find_package(PostgreSQL)