From 998e4820c982c0ea9d257c15f93f1f21d85d6327 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Thu, 26 May 2022 18:01:37 +0200 Subject: Fix linking with Postgres libs on older cmake versions closes #12149 --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7bba68a64..c068be575 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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) -- cgit v1.2.3