[CMake] Tiny FindJNI patch to set JNI_FOUND
Marcel Loose
loose at astron.nl
Mon Dec 21 05:57:38 EST 2009
Hi all,
Here's a tiny patch for FindJNI, which also sets JNI_FOUND, as dictated
by the "CMake Find macros standard".
Best regards,
Marcel Loose.
Index: FindJNI.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindJNI.cmake,v
retrieving revision 1.47
diff -u -r1.47 FindJNI.cmake
--- FindJNI.cmake 2 Nov 2009 09:03:06 -0000 1.47
+++ FindJNI.cmake 21 Dec 2009 10:46:42 -0000
@@ -10,6 +10,7 @@
# JAVA_INCLUDE_PATH = the include path to jni.h
# JAVA_INCLUDE_PATH2 = the include path to jni_md.h
# JAVA_AWT_INCLUDE_PATH = the include path to jawt.h
+# JNI_FOUND = TRUE if JNI headers and libraries were
found.
#
#=============================================================================
@@ -225,3 +226,6 @@
${JAVA_AWT_INCLUDE_PATH}
)
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(JNI DEFAULT_MSG
+ JNI_LIBRARIES JNI_INCLUDE_DIRS)
More information about the CMake
mailing list