When running app on Windows, a CMAKE warning is written to the debug console.
Is there an existing issue?
- [Yes] I have searched existing issues
Build info
- objectbox version: [4.3.0]
- Flutter/Dart version: [3.32.3]
- Build OS: [Windows 10]
- Deployment OS or device: [Windows]
Steps to reproduce
- Launch a project in debug running Windows
Expected behavior
No red CMAKE warnings in the debug console.
Actual behavior Debug Console Output
Launching lib\main.dart on Windows in debug mode... CMake Warning (dev) at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.31/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/windows/CMakeLists.txt:68 (FetchContent_Populate) This warning is for project developers. Use -Wno-dev to suppress it.
Code
I ran flutter create bug and attached a zip file of the output.
Logs, stack traces
flutter pub deps --no-dev
flutter pub deps --no-dev
Dart SDK 3.8.1
Flutter SDK 3.32.3
objectbox_spike 1.0.0+1
|-- cupertino_icons 1.0.8
|-- flutter 0.0.0
| |-- characters 1.4.0
| |-- collection 1.19.1
| |-- material_color_utilities 0.11.1
| | '-- collection...
| |-- meta 1.16.0
| |-- sky_engine 0.0.0
| '-- vector_math 2.1.4
|-- objectbox 4.3.0
| |-- ffi 2.1.4
| |-- flat_buffers 23.5.26
| |-- collection...
| |-- meta...
| '-- path...
|-- objectbox_flutter_libs 4.3.0
| |-- flutter...
| |-- objectbox...
| '-- path_provider...
|-- path 1.9.1
'-- path_provider 2.1.5
|-- path_provider_android 2.2.17
| |-- flutter...
| '-- path_provider_platform_interface...
|-- path_provider_foundation 2.4.1
| |-- flutter...
| '-- path_provider_platform_interface...
|-- path_provider_linux 2.2.1
| |-- xdg_directories 1.1.0
| | |-- meta...
| | '-- path...
| |-- ffi...
| |-- flutter...
| |-- path...
| '-- path_provider_platform_interface...
|-- path_provider_platform_interface 2.1.2
| |-- platform 3.1.6
| |-- plugin_platform_interface 2.1.8
| | '-- meta...
| '-- flutter...
|-- path_provider_windows 2.3.0
| |-- ffi...
| |-- flutter...
| |-- path...
| '-- path_provider_platform_interface...
'-- flutter...
flutter doctor -v
[√] Flutter (Channel stable, 3.32.3, on Microsoft Windows [Version 10.0.19045.5965], locale en-US) [444ms]
• Flutter version 3.32.3 on channel stable at D:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5c1433509f (2 weeks ago), 2025-06-11 13:12:24 -0700
• Engine revision 31c4875c7a
• Dart version 3.8.1
• DevTools version 2.45.1
[√] Windows Version (10 Pro 64-bit, 22H2, 2009) [1,164ms]
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [2.7s]
• Android SDK at C:\Users\gaudere\AppData\Local\Android\sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 17.0.10+0--11572160)
• All Android licenses accepted.
[√] Chrome - develop for the web [95ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.4) [94ms]
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.14.36202.13
• Windows 10 SDK version 10.0.26100.0
[√] Android Studio (version 2023.3) [22ms]
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.10+0--11572160)
[√] VS Code (version 1.100.3) [20ms]
• VS Code at C:\Users\gaudere\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.112.0
[√] Connected device (3 available) [254ms]
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.5965]
• Chrome (web) • chrome • web-javascript • Google Chrome 137.0.7151.120
• Edge (web) • edge • web-javascript • Microsoft Edge 137.0.3296.93
[√] Network resources [334ms]
• All expected network resources are available.
• No issues found!