aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-05-26 18:01:37 +0200
committersfan5 <sfan5@live.de>2022-05-29 14:00:19 +0200
commit998e4820c982c0ea9d257c15f93f1f21d85d6327 (patch)
tree6870c5ee65afa0eeb3ae5f028e5f646eb76aa56d /src
parent5cd7b0c6e4551fd53171fba8b30ac9f0a4e13a36 (diff)
downloadminetest-998e4820c982c0ea9d257c15f93f1f21d85d6327.tar.gz
minetest-998e4820c982c0ea9d257c15f93f1f21d85d6327.tar.bz2
minetest-998e4820c982c0ea9d257c15f93f1f21d85d6327.zip
Fix linking with Postgres libs on older cmake versions
closes #12149
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
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)