Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use FetchContent_MakeAvailable instead of FetchContent_Populate (#1863)
The cmake docs say: 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. And the python wheel sdist build reports warnings (macOS 12.7): CMake Warning (dev) at /private/var/folders/zd/1cs92n8x61j06hj_gbv7qlvr0000gn/T/pip-build-env-t9wrh100/normal/lib/python3.12/site-packages/cmake/data/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message): Calling FetchContent_Populate(Deflate) is deprecated, call FetchContent_MakeAvailable(Deflate) instead. Policy CMP0169 can be set to OLD to allow FetchContent_Populate(Deflate) to be called directly for now, but the ability to call it with declared details will be removed completely in a future version. Signed-off-by: Cary Phillips <[email protected]>
- Loading branch information