[various] Set cmake_policy versions (#3828)

Use of `FetchContent` with default policy settings has a warning starting with CMake 3.24. This opts those plugins into new behaviors for everything up through 3.24 to avoid those warnings.

The `VERSION` is used rather than an explicity policy setting since this is the approach recommended by CMake docs. For any policies that we aren't currently hitting, we would want new behavior by default in the future so that we don't accidentally depend on deprecated behavior.

See https://github.com/flutter/flutter/issues/116866
diff --git a/packages/camera/camera_windows/CHANGELOG.md b/packages/camera/camera_windows/CHANGELOG.md
index 2c0c518..591bec6 100644
--- a/packages/camera/camera_windows/CHANGELOG.md
+++ b/packages/camera/camera_windows/CHANGELOG.md
@@ -1,5 +1,6 @@
-## NEXT
+## 0.2.1+6
 
+* Sets a cmake_policy compatibility version to fix build warnings.
 * Aligns Dart and Flutter SDK constraints.
 
 ## 0.2.1+5
diff --git a/packages/camera/camera_windows/pubspec.yaml b/packages/camera/camera_windows/pubspec.yaml
index 0786ad2..81622a2 100644
--- a/packages/camera/camera_windows/pubspec.yaml
+++ b/packages/camera/camera_windows/pubspec.yaml
@@ -2,7 +2,7 @@
 description: A Flutter plugin for getting information about and controlling the camera on Windows.
 repository: https://github.com/flutter/packages/tree/main/packages/camera/camera_windows
 issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
-version: 0.2.1+5
+version: 0.2.1+6
 
 environment:
   sdk: ">=2.17.0 <4.0.0"
diff --git a/packages/camera/camera_windows/windows/CMakeLists.txt b/packages/camera/camera_windows/windows/CMakeLists.txt
index caeb109..534372f 100644
--- a/packages/camera/camera_windows/windows/CMakeLists.txt
+++ b/packages/camera/camera_windows/windows/CMakeLists.txt
@@ -2,6 +2,8 @@
 set(PROJECT_NAME "camera_windows")
 project(${PROJECT_NAME} LANGUAGES CXX)
 
+cmake_policy(VERSION 3.14...3.24)
+
 # This value is used when generating builds using this plugin, so it must
 # not be changed
 set(PLUGIN_NAME "${PROJECT_NAME}_plugin")
diff --git a/packages/file_selector/file_selector_linux/CHANGELOG.md b/packages/file_selector/file_selector_linux/CHANGELOG.md
index f488ac8..262c418 100644
--- a/packages/file_selector/file_selector_linux/CHANGELOG.md
+++ b/packages/file_selector/file_selector_linux/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.9.1+3
+
+* Sets a cmake_policy compatibility version to fix build warnings.
+
 ## 0.9.1+2
 
 * Clarifies explanation of endorsement in README.
diff --git a/packages/file_selector/file_selector_linux/linux/CMakeLists.txt b/packages/file_selector/file_selector_linux/linux/CMakeLists.txt
index 2bbe7a3..1b1af07 100644
--- a/packages/file_selector/file_selector_linux/linux/CMakeLists.txt
+++ b/packages/file_selector/file_selector_linux/linux/CMakeLists.txt
@@ -2,6 +2,8 @@
 set(PROJECT_NAME "file_selector_linux")
 project(${PROJECT_NAME} LANGUAGES CXX)
 
+cmake_policy(VERSION 3.10...3.24)
+
 set(PLUGIN_NAME "${PROJECT_NAME}_plugin")
 
 list(APPEND PLUGIN_SOURCES
diff --git a/packages/file_selector/file_selector_linux/pubspec.yaml b/packages/file_selector/file_selector_linux/pubspec.yaml
index 2751e68..8064e68 100644
--- a/packages/file_selector/file_selector_linux/pubspec.yaml
+++ b/packages/file_selector/file_selector_linux/pubspec.yaml
@@ -2,7 +2,7 @@
 description: Liunx implementation of the file_selector plugin.
 repository: https://github.com/flutter/packages/tree/main/packages/file_selector/file_selector_linux
 issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+file_selector%22
-version: 0.9.1+2
+version: 0.9.1+3
 
 environment:
   sdk: ">=2.17.0 <4.0.0"
diff --git a/packages/file_selector/file_selector_windows/CHANGELOG.md b/packages/file_selector/file_selector_windows/CHANGELOG.md
index d6e2b83..80151bf 100644
--- a/packages/file_selector/file_selector_windows/CHANGELOG.md
+++ b/packages/file_selector/file_selector_windows/CHANGELOG.md
@@ -1,5 +1,6 @@
-## NEXT
+## 0.9.1+8
 
+* Sets a cmake_policy compatibility version to fix build warnings.
 * Updates minimum Flutter version to 3.3.
 
 ## 0.9.1+7
diff --git a/packages/file_selector/file_selector_windows/pubspec.yaml b/packages/file_selector/file_selector_windows/pubspec.yaml
index 3d55f84..be62b1f 100644
--- a/packages/file_selector/file_selector_windows/pubspec.yaml
+++ b/packages/file_selector/file_selector_windows/pubspec.yaml
@@ -2,7 +2,7 @@
 description: Windows implementation of the file_selector plugin.
 repository: https://github.com/flutter/packages/tree/main/packages/file_selector/file_selector_windows
 issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+file_selector%22
-version: 0.9.1+7
+version: 0.9.1+8
 
 environment:
   sdk: ">=2.18.0 <4.0.0"
diff --git a/packages/file_selector/file_selector_windows/windows/CMakeLists.txt b/packages/file_selector/file_selector_windows/windows/CMakeLists.txt
index e06f374..906821c 100644
--- a/packages/file_selector/file_selector_windows/windows/CMakeLists.txt
+++ b/packages/file_selector/file_selector_windows/windows/CMakeLists.txt
@@ -2,6 +2,8 @@
 set(PROJECT_NAME "file_selector_windows")
 project(${PROJECT_NAME} LANGUAGES CXX)
 
+cmake_policy(VERSION 3.14...3.24)
+
 set(PLUGIN_NAME "${PROJECT_NAME}_plugin")
 
 list(APPEND PLUGIN_SOURCES
diff --git a/packages/local_auth/local_auth_windows/CHANGELOG.md b/packages/local_auth/local_auth_windows/CHANGELOG.md
index 85335fe..5b44b32 100644
--- a/packages/local_auth/local_auth_windows/CHANGELOG.md
+++ b/packages/local_auth/local_auth_windows/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.0.8
+
+* Sets a cmake_policy compatibility version to fix build warnings.
+
 ## 1.0.7
 
 * Clarifies explanation of endorsement in README.
diff --git a/packages/local_auth/local_auth_windows/pubspec.yaml b/packages/local_auth/local_auth_windows/pubspec.yaml
index 66f402a..01a9bda 100644
--- a/packages/local_auth/local_auth_windows/pubspec.yaml
+++ b/packages/local_auth/local_auth_windows/pubspec.yaml
@@ -2,7 +2,7 @@
 description: Windows implementation of the local_auth plugin.
 repository: https://github.com/flutter/packages/tree/main/packages/local_auth/local_auth_windows
 issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+local_auth%22
-version: 1.0.7
+version: 1.0.8
 
 environment:
   sdk: ">=2.17.0 <4.0.0"
diff --git a/packages/local_auth/local_auth_windows/windows/CMakeLists.txt b/packages/local_auth/local_auth_windows/windows/CMakeLists.txt
index 9784aa5..780ca45 100644
--- a/packages/local_auth/local_auth_windows/windows/CMakeLists.txt
+++ b/packages/local_auth/local_auth_windows/windows/CMakeLists.txt
@@ -1,5 +1,6 @@
 cmake_minimum_required(VERSION 3.15)
 set(PROJECT_NAME "local_auth_windows")
+cmake_policy(VERSION 3.15...3.24)
 set(WIL_VERSION "1.0.220201.1")
 set(CPPWINRT_VERSION "2.0.220418.1")
 project(${PROJECT_NAME} LANGUAGES CXX)
diff --git a/packages/pigeon/platform_tests/test_plugin/windows/CMakeLists.txt b/packages/pigeon/platform_tests/test_plugin/windows/CMakeLists.txt
index 4e41dd7..30e26d2 100644
--- a/packages/pigeon/platform_tests/test_plugin/windows/CMakeLists.txt
+++ b/packages/pigeon/platform_tests/test_plugin/windows/CMakeLists.txt
@@ -8,6 +8,8 @@
 set(PROJECT_NAME "test_plugin")
 project(${PROJECT_NAME} LANGUAGES CXX)
 
+cmake_policy(VERSION 3.14...3.24)
+
 # This value is used when generating builds using this plugin, so it must
 # not be changed
 set(PLUGIN_NAME "test_plugin_plugin")
diff --git a/packages/url_launcher/url_launcher_linux/CHANGELOG.md b/packages/url_launcher/url_launcher_linux/CHANGELOG.md
index f81ba86..60e7b47 100644
--- a/packages/url_launcher/url_launcher_linux/CHANGELOG.md
+++ b/packages/url_launcher/url_launcher_linux/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 3.0.5
+
+* Sets a cmake_policy compatibility version to fix build warnings.
+
 ## 3.0.4
 
 * Clarifies explanation of endorsement in README.
diff --git a/packages/url_launcher/url_launcher_linux/linux/CMakeLists.txt b/packages/url_launcher/url_launcher_linux/linux/CMakeLists.txt
index b3f4a22..58e7706 100644
--- a/packages/url_launcher/url_launcher_linux/linux/CMakeLists.txt
+++ b/packages/url_launcher/url_launcher_linux/linux/CMakeLists.txt
@@ -2,6 +2,8 @@
 set(PROJECT_NAME "url_launcher_linux")
 project(${PROJECT_NAME} LANGUAGES CXX)
 
+cmake_policy(VERSION 3.10...3.24)
+
 set(PLUGIN_NAME "${PROJECT_NAME}_plugin")
 
 list(APPEND PLUGIN_SOURCES
diff --git a/packages/url_launcher/url_launcher_linux/pubspec.yaml b/packages/url_launcher/url_launcher_linux/pubspec.yaml
index b7916ee..cbae277 100644
--- a/packages/url_launcher/url_launcher_linux/pubspec.yaml
+++ b/packages/url_launcher/url_launcher_linux/pubspec.yaml
@@ -2,7 +2,7 @@
 description: Linux implementation of the url_launcher plugin.
 repository: https://github.com/flutter/packages/tree/main/packages/url_launcher/url_launcher_linux
 issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
-version: 3.0.4
+version: 3.0.5
 
 environment:
   sdk: ">=2.17.0 <4.0.0"
diff --git a/packages/url_launcher/url_launcher_windows/CHANGELOG.md b/packages/url_launcher/url_launcher_windows/CHANGELOG.md
index dbf4c6d..87da9c6 100644
--- a/packages/url_launcher/url_launcher_windows/CHANGELOG.md
+++ b/packages/url_launcher/url_launcher_windows/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 3.0.6
+
+* Sets a cmake_policy compatibility version to fix build warnings.
+
 ## 3.0.5
 
 * Clarifies explanation of endorsement in README.
diff --git a/packages/url_launcher/url_launcher_windows/pubspec.yaml b/packages/url_launcher/url_launcher_windows/pubspec.yaml
index c3d07a2..2179476 100644
--- a/packages/url_launcher/url_launcher_windows/pubspec.yaml
+++ b/packages/url_launcher/url_launcher_windows/pubspec.yaml
@@ -2,7 +2,7 @@
 description: Windows implementation of the url_launcher plugin.
 repository: https://github.com/flutter/packages/tree/main/packages/url_launcher/url_launcher_windows
 issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
-version: 3.0.5
+version: 3.0.6
 
 environment:
   sdk: ">=2.17.0 <4.0.0"
diff --git a/packages/url_launcher/url_launcher_windows/windows/CMakeLists.txt b/packages/url_launcher/url_launcher_windows/windows/CMakeLists.txt
index a34bcb3..da39522 100644
--- a/packages/url_launcher/url_launcher_windows/windows/CMakeLists.txt
+++ b/packages/url_launcher/url_launcher_windows/windows/CMakeLists.txt
@@ -2,6 +2,8 @@
 set(PROJECT_NAME "url_launcher_windows")
 project(${PROJECT_NAME} LANGUAGES CXX)
 
+cmake_policy(VERSION 3.10...3.24)
+
 set(PLUGIN_NAME "${PROJECT_NAME}_plugin")
 
 list(APPEND PLUGIN_SOURCES