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

Merge branch 'master' into 'master'

Fix a typo in fetch.md

See merge request CLIUtils/modern-cmake!20
This commit is contained in:
Henry Schreiner 2019-09-23 20:01:40 +00:00
commit 3b949381d5

View File

@ -4,7 +4,7 @@ Often, you would like to do your download of data or packages as part of the con
The [FetchContent] module has excellent documentation that I won't try to repeat. The key ideas are: The [FetchContent] module has excellent documentation that I won't try to repeat. The key ideas are:
* Use `FetchContent_Declare(MyName` to get data or a package. You can set URLs, Git repositories, and more. * Use `FetchContent_Declare(MyName)` to get data or a package. You can set URLs, Git repositories, and more.
* Use `FetchContent_GetProperties(MyName)` on the name you picked in the first step to get `MyName_*` variables. * Use `FetchContent_GetProperties(MyName)` on the name you picked in the first step to get `MyName_*` variables.
* Check `MyName_POPULATED`, and if not populated, use `FetchContent_Populate(MyName)` (and if a package, `add_subdirectory("${MyName_SOURCE_DIR}" "${MyName_BINARY_DIR}")`) * Check `MyName_POPULATED`, and if not populated, use `FetchContent_Populate(MyName)` (and if a package, `add_subdirectory("${MyName_SOURCE_DIR}" "${MyName_BINARY_DIR}")`)