Skip to content

Cmake warning issue when building windows desktop appΒ #522

@KhaelM

Description

@KhaelM

Running or building Windows desktop app after objectbox dependencies importation shows following warnings:

CMake Warning (dev) at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1264 (message):
  The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
  not set.  The policy's OLD behavior will be used.  When using a URL
  download, the timestamps of extracted files should preferably be that of
  the time of extraction, otherwise code that depends on the extracted
  contents might not be rebuilt if the URL changes.  The OLD behavior
  preserves the timestamps from the archive instead, but this is usually not
  what you want.  Update your project to the NEW behavior or specify the
  DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
  robustness issue.
Call Stack (most recent call first):
  flutter/ephemeral/.plugin_symlinks/objectbox_flutter_libs/windows/CMakeLists.txt:58 (FetchContent_Declare)
This warning is for project developers.  Use -Wno-dev to suppress it.

Basic info (please complete the following information):

  • ObjectBox version: objectbox: ^2.0.0 | objectbox_flutter_libs: any
  • Flutter/Dart SDK: 3.7.8
  • Null-safety enabled: yes
  • Reproducibility: always
  • OS: Windows 11
  • Device/Emulator: Windows x64

Steps to reproduce

  1. Create new flutter project
  2. Add objectbox: ^2.0.0 | objectbox_flutter_libs: any to pubspec
  3. Run flutter build windows

Expected behavior

code generation without warnings

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions