jbeder / yaml-cpp

A YAML parser and emitter in C++
MIT License
5.18k stars 1.86k forks source link

Use `FetchContent_MakeAvailable` #1311

Closed LecrisUT closed 3 months ago

LecrisUT commented 3 months ago

It is highly recommended to use FetchContent_MakeAvailable instead of manually interfacing with the FetchContent_Populate

jbeder commented 3 months ago

For reference:

The FetchContent_Populate() command is a self-contained call which can be used to perform content population as an isolated operation. It is rarely the right command to use, projects should almost always use FetchContent_Declare() and FetchContent_MakeAvailable() instead. The main use case for FetchContent_Populate() is in CMake script mode as part of implementing some other higher level custom feature.