Print

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

Synopsis

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

Print Path List
  print([<mode>] REL_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