From 7fb3b9edd6cbc610404b9d1685150caeedb3eeba Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 19 Jun 2022 14:14:09 +0200 Subject: [PATCH] Fix Postgres linking on older CMake (see https://github.com/minetest/minetest/commit/998e4820c982c0ea9d257c15f93f1f21d85d6327) --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f1a3b82..5a179ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)