1
0
mirror of synced 2024-12-22 20:50:00 +01:00
This commit is contained in:
Arcturus 2019-05-06 07:20:59 +00:00 committed by Henry Schreiner
parent dd7232b23c
commit 548040e179

View File

@ -2,7 +2,7 @@
## Control flow ## Control flow
CMake has an «command:`if`» statement, though over the years is has become rather complex. There are a series of all caps keywords you can use inside an if statement, and you can often refer to variables by either directly by name or using the `${}` syntax (the if statement historically predates variable expansion). An example if statement: CMake has an «command:`if`» statement, though over the years it has become rather complex. There are a series of all caps keywords you can use inside an if statement, and you can often refer to variables by either directly by name or using the `${}` syntax (the if statement historically predates variable expansion). An example if statement:
```cmake ```cmake
if(variable) if(variable)