# HG changeset patch # User Sebastien Jodogne # Date 1756726872 -7200 # Node ID 75b057e9cff0cdfb88097732224648bf26e5d0f3 # Parent 97a1d882bdc1613bef4e705c4de1d64c64f97448 fix build with recent versions of CMake diff -r 97a1d882bdc1 -r 75b057e9cff0 CMakeLists.txt --- a/CMakeLists.txt Sat Apr 06 17:17:26 2024 +0200 +++ b/CMakeLists.txt Mon Sep 01 13:41:12 2025 +0200 @@ -1,11 +1,11 @@ -cmake_minimum_required (VERSION 2.8) +cmake_minimum_required (VERSION 2.8...4.0) project(Orthanc_Import) find_package(Java REQUIRED) include(UseJava) -set(CMAKE_JAVA_COMPILE_FLAGS "-source" "1.6" "-target" "1.6") +set(CMAKE_JAVA_COMPILE_FLAGS "-source" "1.8" "-target" "1.8") set(CMAKE_JAVA_INCLUDE_PATH /usr/share/java/ij.jar) # The name of an ImageJ plugin must contain an underscore