Skip to content

fix: resolve FetchContent_Populate deprecation (CMP0169) in Windows CMake#800

Open
oursentury wants to merge 2 commits intoobjectbox:mainfrom
oursentury:main
Open

fix: resolve FetchContent_Populate deprecation (CMP0169) in Windows CMake#800
oursentury wants to merge 2 commits intoobjectbox:mainfrom
oursentury:main

Conversation

@oursentury
Copy link
Copy Markdown

This PR replaces the deprecated FetchContent_Populate pattern with the modern FetchContent_MakeAvailable in the Windows CMakeLists.txt.

Starting with CMake 3.30, calling FetchContent_Populate directly triggers a deprecation warning (Policy CMP0169). Using FetchContent_MakeAvailable is the recommended approach for CMake 3.14+ and resolves the warning while maintaining backward compatibility.

Changes:

Updated flutter_libs/windows/CMakeLists.txt to use FetchContent_MakeAvailable.

Verified build on Windows with CMake 3.30+.

Removed unnecessary comments regarding FetchContent_MakeAvailable usage and clarified the source directory path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant