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_list>... [INDENT])

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

Module Variables

PRINT_BASE_DIR

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

Usage