diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-09-05 16:05:13 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-09-12 17:46:35 +0200 |
commit | 6152784cb1fa6981b3d54cf896b0b59ce01410e8 (patch) | |
tree | b3873b2b5e9388a130ce506224f4d634e2f83fec /cmake/FindJNI.cmake | |
parent | 58f20b0c6e308acd0b95ab0f8924dbb01be325ff (diff) | |
download | mariadb-git-6152784cb1fa6981b3d54cf896b0b59ce01410e8.tar.gz |
make CONNECT's finding Java and JNI less verbose
Diffstat (limited to 'cmake/FindJNI.cmake')
-rw-r--r-- | cmake/FindJNI.cmake | 8 |
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}) |