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

Calling FetchContent_Populate(objectbox-download) is deprecated #701

Open
khaled-0 opened this issue Dec 22, 2024 · 1 comment
Open

Calling FetchContent_Populate(objectbox-download) is deprecated #701

khaled-0 opened this issue Dec 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@khaled-0
Copy link

FetchContent_Populate(objectbox-download)

CMake Warning (dev) at /usr/share/cmake/Modules/FetchContent.cmake:1953 (message):
  Calling FetchContent_Populate(objectbox-download) is deprecated, call
  FetchContent_MakeAvailable(objectbox-download) instead.  Policy CMP0169 can
  be set to OLD to allow FetchContent_Populate(objectbox-download) 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):
  flutter/ephemeral/.plugin_symlinks/objectbox_flutter_libs/linux/CMakeLists.txt:68 (FetchContent_Populate)
This warning is for project developers.  Use -Wno-dev to suppress it.

Flutter Doctor

╰─❯ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.0, on Fedora Linux 41 (Workstation Edition)
    6.12.5-200.fc41.x86_64, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.96.2)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!
@greenrobot-team
Copy link
Member

greenrobot-team commented Jan 13, 2025

Thanks for reporting! It appears this is similar to #522: using CMake 3.30 or newer to compile prints this warning.

To resolve this the CMakeLists.txt files for Linux and Windows for the Flutter plugins need to be migrated.

However, note that using FetchContent_MakeAvailable requires CMake 3.14. Check if supporting old versions like it is required and add a fallback to the old call.

(internal issue objectbox-dart#131)

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

No branches or pull requests

2 participants