Commit a317d135 authored by Dominik Charousset's avatar Dominik Charousset

Fail the build early on invalid log level setup

parent 8b238b72
...@@ -374,6 +374,12 @@ else() ...@@ -374,6 +374,12 @@ else()
string(TOUPPER "${CAF_LOG_LEVEL}" CAF_LOG_LEVEL) string(TOUPPER "${CAF_LOG_LEVEL}" CAF_LOG_LEVEL)
endif() endif()
set(validLogLevels QUIET ERROR WARNING DEBUG TRACE)
list(FIND validLogLevels "${CAF_LOG_LEVEL}" logLevelIndex)
if(logLevelIndex LESS 0)
MESSAGE(FATAL_ERROR "Invalid log level: \"${CAF_LOG_LEVEL}\"")
endif()
################################################################################ ################################################################################
# setup for install target # # setup for install target #
################################################################################ ################################################################################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment