summaryrefslogtreecommitdiffstats
path: root/Modules/FindJNI.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2009-12-21 20:56:05 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2009-12-21 20:56:05 (GMT)
commitc424267cc1c4462554f4f99387a8a3347ea593a2 (patch)
treebb4d3275e98cef71801cefa9e5c4e6d4a1932805 /Modules/FindJNI.cmake
parenta302b51db58e21698725c6304f7ab5da0decb8fb (diff)
downloadCMake-c424267cc1c4462554f4f99387a8a3347ea593a2.zip
CMake-c424267cc1c4462554f4f99387a8a3347ea593a2.tar.gz
CMake-c424267cc1c4462554f4f99387a8a3347ea593a2.tar.bz2
-handle the REQUIRED and QUIET keywords in FindJNI.cmake, also set JNI_FOUND
Alex
Diffstat (limited to 'Modules/FindJNI.cmake')
-rw-r--r--Modules/FindJNI.cmake5
1 files changed, 5 insertions, 0 deletions
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