changeset 43:678bbed285a1 default tip

improved import of JNI in cmake
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 06 Sep 2024 13:53:54 +0200
parents b04559283a1d
children
files Plugin/CMakeLists.txt
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()