# HG changeset patch # User Sebastien Jodogne # Date 1725623634 -7200 # Node ID 678bbed285a174e629762cab3d53af4dc3c712c9 # Parent b04559283a1de8dcd0c12f7cbe75f51d477f8dac improved import of JNI in cmake diff -r b04559283a1d -r 678bbed285a1 Plugin/CMakeLists.txt --- a/Plugin/CMakeLists.txt Sat Aug 31 12:00:40 2024 +0200 +++ b/Plugin/CMakeLists.txt Fri Sep 06 13:53:54 2024 +0200 @@ -75,7 +75,7 @@ message(FATAL_ERROR "Cannot statically link against JNI on this platform") endif() - include(FindJNI) + find_package(JNI REQUIRED COMPONENTS JVM) if (NOT JNI_FOUND) message(FATAL_ERROR "Unable to find JNI") endif()