Simplify using RECONFIGURE_MESSAGE_LEVEL

The behavior stays the same, but we are using the same logic that is
used elsewhere too.
This commit is contained in:
Robert Schulze 2022-04-25 10:31:41 +02:00
parent 63221c8779
commit 730ce1806c
No known key found for this signature in database
GPG Key ID: 15C08E29800B665D
2 changed files with 2 additions and 6 deletions

View File

@ -431,7 +431,7 @@ if (COMPILER_CLANG)
endif ()
elseif (ENABLE_THINLTO)
message (${RECONFIGURE_MESSAGE_LEVEL} "ThinLTO is only available with CLang")
message (${RECONFIGURE_MESSAGE_LEVEL} "ThinLTO is only available with Clang")
endif ()
# Turns on all external libs like s3, kafka, ODBC, ...

View File

@ -22,11 +22,7 @@ if (ENABLE_CLANG_TIDY)
# The variable CMAKE_CXX_CLANG_TIDY will be set inside src and base directories with non third-party code.
# set (CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_PATH}")
elseif (FAIL_ON_UNSUPPORTED_OPTIONS_COMBINATION)
message(FATAL_ERROR "clang-tidy is not found")
else ()
message(STATUS
"clang-tidy is not found.
This is normal - the tool is only used for code static analysis and isn't essential for the build.")
message(${RECONFIGURE_MESSAGE_LEVEL} "clang-tidy is not found")
endif ()
endif ()