mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-15 01:53:41 +08:00
Report the PG version and path before complaining it's incorrect (#6634)
Helps to investigate errors where a wrong PG version gets picked.
This commit is contained in:
parent
00f2f01b1c
commit
2265c18baf
@ -342,14 +342,17 @@ else()
|
||||
endif()
|
||||
set(PG_VERSION "${PG_VERSION_MAJOR}.${PG_VERSION_MINOR}")
|
||||
|
||||
message(
|
||||
STATUS
|
||||
"Compiling against PostgreSQL version ${PG_VERSION} using pg_config '${PG_CONFIG}'"
|
||||
)
|
||||
|
||||
# Ensure that PostgreSQL version is supported and consistent with src/compat.h
|
||||
# version check
|
||||
if((${PG_VERSION_MAJOR} LESS "13")
|
||||
OR (${PG_VERSION_MAJOR} GREATER "16")
|
||||
AND NOT (${EXPERIMENTAL}))
|
||||
message(FATAL_ERROR "TimescaleDB only supports PostgreSQL 13, 14, 15 and 16")
|
||||
else()
|
||||
message(STATUS "Compiling against PostgreSQL version ${PG_VERSION}")
|
||||
endif()
|
||||
|
||||
# Get PostgreSQL configuration from pg_config
|
||||
|
Loading…
x
Reference in New Issue
Block a user