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

Recommend upgrade to CPM v0.40.1 or newer to address FetchContent_Populate deprecation #39

Closed
dksmiffs opened this issue Jan 14, 2025 · 0 comments · Fixed by #41
Closed

Comments

@dksmiffs
Copy link
Contributor

When configuring CMake for KDIS using CMake 3.30 or newer, the following warning is posted:

CMake Warning (dev) at <ParentPath>/CMake/v3.30.3/share/cmake-3.30/Modules/FetchContent.cmake:1953 (message):
  Calling FetchContent_Populate(googletest) is deprecated, call
  FetchContent_MakeAvailable(googletest) instead.  Policy CMP0169 can be set
  to OLD to allow FetchContent_Populate(googletest) 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/CPM.cmake:1004 (FetchContent_Populate)
  cmake/CPM.cmake:798 (cpm_fetch_package)
  tests/CMakeLists.txt:24 (CPMAddPackage)
This warning is for project developers.  Use -Wno-dev to suppress it.

This issue was corrected upstream here. Recommend that KDIS move to a more modern version of CPM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant