CMake Language Syntax

Learn about the syntax of comments, commands, and command arguments in the CMake language.

Comments

Just like in C++, there are two kinds of comments: single-line comments and bracket (multiline) comments. But unlike in C++, bracket comments can be nested. Let's have a look at the syntax of both kinds of comments in the following code snippet:

Get hands-on with 1200+ tech skills courses.