summaryrefslogtreecommitdiff
path: root/cmake/FindJNI.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-09-05 16:05:13 +0200
committerSergei Golubchik <serg@mariadb.org>2016-09-12 17:46:35 +0200
commit6152784cb1fa6981b3d54cf896b0b59ce01410e8 (patch)
treeb3873b2b5e9388a130ce506224f4d634e2f83fec /cmake/FindJNI.cmake
parent58f20b0c6e308acd0b95ab0f8924dbb01be325ff (diff)
downloadmariadb-git-6152784cb1fa6981b3d54cf896b0b59ce01410e8.tar.gz
make CONNECT's finding Java and JNI less verbose
Diffstat (limited to 'cmake/FindJNI.cmake')
-rw-r--r--cmake/FindJNI.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/FindJNI.cmake b/cmake/FindJNI.cmake
new file mode 100644
index 00000000000..3db9198d9c8
--- /dev/null
+++ b/cmake/FindJNI.cmake
@@ -0,0 +1,8 @@
+if(DEFINED JAVA_AWT_LIBRARY)
+ return()
+endif()
+
+set(orig_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
+unset(CMAKE_MODULE_PATH)
+include(FindJava)
+set(CMAKE_MODULE_PATH ${orig_CMAKE_MODULE_PATH})