1
0
mirror of synced 2024-12-22 20:50:00 +01:00

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

View File

@ -2,7 +2,7 @@
## Configure File ## 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`: This functionality is used quite frequently; for example, on `Version.h.in`: