Fix linking with Postgres libs on older cmake versions
* integrates https://github.com/minetest/minetest/pull/11215 so it backporteda24899bf2d
* closes https://github.com/minetest/minetest/issues/12149 * closes https://github.com/minetest/minetest/issues/11219 * backported998e4820c9
This commit is contained in:
parent
9d87cd206c
commit
70fd300c5a
@ -201,6 +201,8 @@ if(ENABLE_POSTGRESQL)
|
||||
# but we don't need them, so continue anyway if only those are missing.
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user