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
23d8b837f4
commit
aa98a66666
@ -200,6 +200,8 @@ if(ENABLE_POSTGRESQL)
|
|||||||
# but we don't need them, so continue anyway if only those are missing.
|
# but we don't need them, so continue anyway if only those are missing.
|
||||||
if(PostgreSQL_INCLUDE_DIR AND PostgreSQL_LIBRARY)
|
if(PostgreSQL_INCLUDE_DIR AND PostgreSQL_LIBRARY)
|
||||||
set(PostgreSQL_FOUND TRUE)
|
set(PostgreSQL_FOUND TRUE)
|
||||||
|
set(PostgreSQL_INCLUDE_DIRS ${PostgreSQL_INCLUDE_DIR})
|
||||||
|
set(PostgreSQL_LIBRARIES ${PostgreSQL_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
find_package(PostgreSQL)
|
find_package(PostgreSQL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user