Build Info

The build_info() function dumps build information about the current build. It accepts the following parameter:

  • < mode >: (option), cmake message mode, e.g. WARNING, NOTICE, STATUS, …etc. Defaults to NOTICE is mode is not specified.
  • OUTPUT: (optional), output variable. If specified, message is assigned to variable, instead of being printed to stdout or stderr.

Example

set(LIB_TYPE "SHARED")

build_info()

Outputs a message similar to this (not all properties are shown in example):

build info:
 Type: Debug
 Library Type: SHARED
 Compiler flags: ...
 Compiler cxx debug flags: ... 
 Compiler cxx release flags: ...
 Compiler cxx min size flags: ...
 Compiler cxx flags: ...