File tree 3 files changed +12
-4
lines changed
3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ Compiling
133
133
| Dependency | Version | Commentary |
134
134
| ------------| ---------| ------------|
135
135
| GCC | 4.9+ | Can be replaced with Clang 3.4+ |
136
- | CMake | 2.6 + | |
136
+ | CMake | 3.5 + | |
137
137
| Irrlicht | - | Custom version required, see https://github.com/minetest/irrlicht |
138
138
| SQLite3 | 3.0+ | |
139
139
| LuaJIT | 2.0+ | Bundled Lua 5.1 is used if not present |
Original file line number Diff line number Diff line change @@ -146,7 +146,16 @@ option(ENABLE_POSTGRESQL "Enable PostgreSQL backend" TRUE)
146
146
set (USE_POSTGRESQL FALSE )
147
147
148
148
if (ENABLE_POSTGRESQL)
149
- find_package ("PostgreSQL" )
149
+ if (CMAKE_VERSION VERSION_LESS "3.20" )
150
+ find_package (PostgreSQL QUIET )
151
+ # Before CMake 3.20 FindPostgreSQL.cmake always looked for server includes
152
+ # but we don't need them, so continue anyway if only those are missing.
153
+ if (PostgreSQL_INCLUDE_DIR AND PostgreSQL_LIBRARY)
154
+ set (PostgreSQL_FOUND TRUE )
155
+ endif ()
156
+ else ()
157
+ find_package (PostgreSQL)
158
+ endif ()
150
159
151
160
if (PostgreSQL_FOUND)
152
161
set (USE_POSTGRESQL TRUE )
Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ install_linux_deps() {
5
5
local pkgs=(cmake libpng-dev \
6
6
libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev \
7
7
libhiredis-dev libogg-dev libgmp-dev libvorbis-dev libopenal-dev \
8
- gettext libpq-dev postgresql-server-dev-all libleveldb-dev \
9
- libcurl4-openssl-dev)
8
+ gettext libpq-dev libleveldb-dev libcurl4-openssl-dev)
10
9
11
10
if [[ " $1 " == " --old-irr" ]]; then
12
11
shift
You can’t perform that action at this time.
0 commit comments