File: pcl_verbosity.cmake

package info (click to toggle)
pcl 1.9.1%2Bdfsg1-10
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 141,836 kB
  • sloc: cpp: 521,679; xml: 28,792; ansic: 13,915; python: 538; lisp: 93; makefile: 77; sh: 27
file content (21 lines) | stat: -rw-r--r-- 826 bytes parent folder | download | duplicates (3)
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)