Skip to content

CMake deprecation warning (cmake_minimum_required < 3.10) when building on Windows #608

@cppLiker

Description

@cppLiker

Describe the bug
When building a Flutter app for Windows using pdfx, a CMake deprecation warning appears.

To Reproduce
Run:
flutter run -d windows

Expected behavior
No CMake deprecation warnings.

Actual behavior
The following warning appears:

CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of CMake.

Investigation
The issue comes from a generated file:
build/windows/x64/pdfium-download/CMakeLists.txt

It contains:
cmake_minimum_required(VERSION 2.8.12)

This file is generated via DownloadProject.cmake when fetching pdfium.

Environment

  • pdfx: 2.9.2
  • Flutter: 3.41.5
  • Dart: 3.11.3
  • Windows
  • Visual Studio 2026 (CMake included)

Additional context
The build succeeds and PDF rendering works correctly, but the warning appears on every build.

Is there a plan to update the minimum CMake version to avoid this warning?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions