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)
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake