mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-15 18:13:18 +08:00
Do not use NOTICE in CMake files
The `NOTICE` level for `message` doesn't exist in CMake 3.11, which is our minimum supported version, so removing it.
This commit is contained in:
parent
182f6f14fd
commit
d3ed288d2a
@ -339,13 +339,13 @@ file(READ ${PG_INCLUDEDIR}/pg_config.h PG_CONFIG_H)
|
||||
string(REGEX MATCH "#define USE_ASSERT_CHECKING 1" PG_USE_ASSERT_CHECKING ${PG_CONFIG_H})
|
||||
|
||||
if (PG_USE_ASSERT_CHECKING AND NOT ASSERTIONS)
|
||||
message(NOTICE "Assertion checks are OFF although enabled in PostgreSQL build (pg_config.h).\n"
|
||||
message("Assertion checks are OFF although enabled in PostgreSQL build (pg_config.h). "
|
||||
"The PostgreSQL setting for assertions will take precedence.")
|
||||
elseif (ASSERTIONS)
|
||||
message(STATUS "Assertion checks are ON")
|
||||
add_compile_definitions(USE_ASSERT_CHECKING=1)
|
||||
elseif (CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
message(NOTICE "Assertion checks are OFF in Debug build. Set -DASSERTIONS=ON to enable assertions.")
|
||||
message("Assertion checks are OFF in Debug build. Set -DASSERTIONS=ON to enable assertions.")
|
||||
else ()
|
||||
message(STATUS "Assertion checks are OFF")
|
||||
endif ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user