Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmake Warning: Calling FetchContent_Populated(...) is deprecated #171

Closed
steinwurf-sofie opened this issue Sep 9, 2024 · 1 comment
Closed
Labels
enhancement New feature or request library usage

Comments

@steinwurf-sofie
Copy link
Contributor

Probably an easy fix to use FetchContent_MakeAvailable(...) instead as the error describes, since this project already targets cmake_minimum_required(VERSION 3.14).

CMake Warning (dev) at /usr/share/cmake/Modules/FetchContent.cmake:1953 (message):
  Calling FetchContent_Populate(zstd) is deprecated, call
  FetchContent_MakeAvailable(zstd) instead.  Policy CMP0169 can be set to OLD
  to allow FetchContent_Populate(zstd) to be called directly for now, but the
  ability to call it with declared details will be removed completely in a
  future version.
Call Stack (most recent call first):
  cmake_build/_deps/cpptrace-src/CMakeLists.txt:396 (FetchContent_Populate)
This warning is for project developers.  Use -Wno-dev to suppress it.

...

CMake Warning (dev) at /usr/share/cmake/Modules/FetchContent.cmake:1953 (message):
  Calling FetchContent_Populate(libdwarf) is deprecated, call
  FetchContent_MakeAvailable(libdwarf) instead.  Policy CMP0169 can be set to
  OLD to allow FetchContent_Populate(libdwarf) to be called directly for now,
  but the ability to call it with declared details will be removed completely
  in a future version.
Call Stack (most recent call first):
  cmake_build/_deps/cpptrace-src/CMakeLists.txt:431 (FetchContent_Populate)
This warning is for project developers.  Use -Wno-dev to suppress it.
@steinwurf-sofie
Copy link
Contributor Author

Seen from version v0.6.0 as pulled in by libassert using cmake version 3.30.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request library usage
Projects
None yet
Development

No branches or pull requests

2 participants