Browse Source

UseJava: Increase maximum policy version in exported files to 3.27

Extend commit c5f1af1ffe (export: Increase maximum policy version in
exported files to 3.27, 2023-10-03) to cover UseJava too.

Fixes: #22655
Gold856 2 years ago
parent
commit
c17268ff0b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Modules/UseJava/javaTargets.cmake.in

+ 1 - 2
Modules/UseJava/javaTargets.cmake.in

@@ -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.