The CMAKE_MESSAGE_INDENT variable can also be used to add indenting to nested checks if desired. ![]() Check messages are always reported at STATUS log level.Ĭhecks may be nested and every CHECK_START should have exactly one matching CHECK_PASS or CHECK_FAIL. When recording a check result, the command repeats the message from the most recently started check for which no result has yet been reported, then some separator characters and then the message text provided after the CHECK_PASS or CHECK_FAIL keyword. Record an unsuccessful result for a check. Record a concise message about the check about to be performed. Where must be one of the following: CHECK_START keyword form of the message() command: message( "message". This can be more robustly and conveniently expressed using the CHECK_. Message(STATUS "Looking for someheader.h - not found") Message(STATUS "Looking for someheader.h - found") do the checks, set checkSuccess with the result For example: message(STATUS "Looking for someheader.h") Messages using this log level would normally only be temporary and would expect to be removed before releasing the project, packaging up the files, etc.Ī common pattern in CMake output is a message indicating the start of some sort of check, followed by another message reporting the result of that check. TRACEįine-grained messages with very low-level implementation details. These messages will not typically be of interest to other users building the project and will often be closely related to internal implementation details. DEBUGĭetailed informational messages intended for developers working on the project itself as opposed to users who just want to build it. These messages should provide additional details that won't be of interest in most cases, but which may be useful to those building the project when they want deeper insight into what's happening. VERBOSEĭetailed informational messages intended for project users. Ideally these should be concise, no more than a single line, but still informative. The main interesting messages that project users might be interested in. ![]() Important message printed to stderr to attract user's attention. DEPRECATIONĬMake Deprecation Error or Warning if variable CMAKE_ERROR_DEPRECATED or CMAKE_WARN_DEPRECATED is enabled, respectively, else no message. AUTHOR_WARNINGĬMake Warning (dev), continue processing. ![]() WARNINGĬMake Warning, continue processing. First, we create a basic console application. In this section we will show the most basic way to use Qt in a CMake project. It is also supported by various IDEs, including Qt Creator. Just like Qt, it is available on all major development platforms. SEND_ERRORĬMake Error, continue processing, but skip generation. CMake is a group of tools that allow to build, test, and package applications. The cmake(1) executable will return a non-zero exit code. The optional keyword determines the type of message, which influences the way the message is handled: FATAL_ERRORĬMake Error, stop processing and generation. If more than one message string is given, they are concatenated into a single message with no separator between the strings. Record the specified message text in the log. ) General messages message( "message text".
0 Comments
Leave a Reply. |