Skip to content

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

@steinwurf-sofie

Description

@steinwurf-sofie

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions