Extend commit c5f1af1ffe (export: Increase maximum policy version in exported files to 3.27, 2023-10-03) to cover UseJava too. Fixes: #22655
@@ -1,6 +1,5 @@
-cmake_minimum_required(VERSION 2.8.12)
cmake_policy(PUSH)
-cmake_policy(VERSION 2.8)
+cmake_policy(VERSION 2.8.12...3.27)
#----------------------------------------------------------------
# Generated CMake Java target import file.