We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c35bbc6 commit 18d9cafCopy full SHA for 18d9caf
docs/cmake/introduction.md
@@ -147,6 +147,30 @@ This allows breaking down complex configurations into manageable components.
147
148
## 4. CMake syntax
149
150
+CMake syntax consists of the following 3 elements:
151
+
152
+* Comments (single and multi-line)
153
+* Commands (functions and macros defined in modules, and CMake built-in
154
+ commands)
155
+* Command arguments
156
157
+```cmake
158
+# This is a line comment.
159
160
+#[[
161
+ This is a multi-line comment.
162
+]]
163
164
+some_command()
165
166
+another_command(
167
+ "quoted argument"
168
+ [[bracket argument]]
169
+ unquoted_argument
170
+ ${variable}
171
+)
172
+```
173
174
### 4.1. Variables
175
176
In CMake, variables are essential for storing and manipulating data throughout
0 commit comments