mirror of
1
0
Fork 0

Merge branch 'patch-1' into 'master'

Fixed a missing parenthesis typo.

See merge request CLIUtils/modern-cmake!43
This commit is contained in:
Henry Schreiner 2021-02-09 13:31:28 +00:00
commit 1171eafc96
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
## Configure File
CMake allows you to access CMake variables from your code using `configure_file`. This command copies a file (traditionally ending in `.in` from one place to another, substituting all CMake variables it finds. If you want to avoid replacing existing `${}` syntax in your input file, use the `@ONLY` keyword. There's also a `COPY_ONLY` keyword if you are just using this as a replacement for `file(COPY`.
CMake allows you to access CMake variables from your code using `configure_file`. This command copies a file (traditionally ending in `.in`) from one place to another, substituting all CMake variables it finds. If you want to avoid replacing existing `${}` syntax in your input file, use the `@ONLY` keyword. There's also a `COPY_ONLY` keyword if you are just using this as a replacement for `file(COPY`.
This functionality is used quite frequently; for example, on `Version.h.in`: