mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-17 02:53:51 +08:00
Simplify postgres version check
This commit is contained in:
parent
c5e983e422
commit
be47dd0020
@ -200,9 +200,7 @@ endif ()
|
||||
|
||||
message(STATUS "Compiling against PostgreSQL version ${PG_VERSION}")
|
||||
|
||||
if ((${PG_VERSION} VERSION_LESS "9.6")
|
||||
OR (${PG_VERSION} VERSION_EQUAL "13")
|
||||
OR (${PG_VERSION} VERSION_GREATER "13"))
|
||||
if ((${PG_VERSION} VERSION_LESS "9.6") OR (${PG_VERSION_MAJOR} GREATER "12"))
|
||||
message(FATAL_ERROR "TimescaleDB only supports PostgreSQL 9.6, 10, 11 or 12")
|
||||
endif ()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user