From c424267cc1c4462554f4f99387a8a3347ea593a2 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 21 Dec 2009 15:56:05 -0500 Subject: -handle the REQUIRED and QUIET keywords in FindJNI.cmake, also set JNI_FOUND Alex --- Modules/FindJNI.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/FindJNI.cmake b/Modules/FindJNI.cmake index 47f96e0..a61c683 100644 --- a/Modules/FindJNI.cmake +++ b/Modules/FindJNI.cmake @@ -5,6 +5,7 @@ # # JNI_INCLUDE_DIRS = the include dirs to use # JNI_LIBRARIES = the libraries to use +# JNI_FOUND = TRUE if JNI headers and libraries were found. # JAVA_AWT_LIBRARY = the path to the jawt library # JAVA_JVM_LIBRARY = the path to the jvm library # JAVA_INCLUDE_PATH = the include path to jni.h @@ -206,6 +207,10 @@ FIND_PATH(JAVA_AWT_INCLUDE_PATH jawt.h ${JAVA_INCLUDE_PATH} ) +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(JNI DEFAULT_MSG JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY + JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) + MARK_AS_ADVANCED( JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY -- cgit v0.12