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:
Mats Kindahl 2020-06-08 08:58:54 +02:00 committed by Mats Kindahl
parent 182f6f14fd
commit d3ed288d2a

View File

@ -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 ()