Fix linking with Postgres libs on older cmake versions

closes #12149
master
sfan5 2022-05-26 18:01:37 +02:00
parent 5cd7b0c6e4
commit 998e4820c9
1 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,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)