1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
# Set PCL default verbosity level from cmake
# User input default info
set (PCL_VERBOSITY_LEVEL Info CACHE STRING "Set PCL verbosity level. Available options are: Always Error Warn Info Debug Verbose")
if(${PCL_VERBOSITY_LEVEL} STREQUAL Info)
set(VERBOSITY_LEVEL_INFO 1)
elseif(${PCL_VERBOSITY_LEVEL} STREQUAL Always)
set(VERBOSITY_LEVEL_ALWAYS 1)
elseif(${PCL_VERBOSITY_LEVEL} STREQUAL Error)
set(VERBOSITY_LEVEL_ERROR 1)
elseif(${PCL_VERBOSITY_LEVEL} STREQUAL Warn)
set(VERBOSITY_LEVEL_WARN 1)
elseif(${PCL_VERBOSITY_LEVEL} STREQUAL Debug)
set(VERBOSITY_LEVEL_DEBUG 1)
elseif(${PCL_VERBOSITY_LEVEL} STREQUAL Verbose)
set(VERBOSITY_LEVEL_VERBOSE 1)
else()
# message(WARNING "Unknown verbosity level ${PCL_VERBOSITY_LEVEL}. Set to Info!")
set(VERBOSITY_LEVEL_INFO)
endif(${PCL_VERBOSITY_LEVEL} STREQUAL Info)
|