Print

Log a message by wrapping the CMake message() command to extend its functionalities .It requires CMake 3.20 or newer.

Synopsis

Print Formated Message
  print([<mode>] "message with format text" <argument>...)

Print Path List
  print([<mode>] PATHS <file-path>... [INDENT])

Print String List
  print([<mode>] STRINGS <string>... [INDENT])

Module Variables

PRINT_BASE_DIR

Specifies the base directory used to compute relative paths in the print(normal) commands. Its default value is CMAKE_SOURCE_DIR.

Usage