mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
f9f8cae9fe
when cmake is re-run and include(FindJAVA) is skipped, JAVA_FOUND should still be set. Same for JNI.
13 lines
274 B
CMake
13 lines
274 B
CMake
if(JAVA_AWT_LIBRARY)
|
|
set(JNI_FOUND TRUE)
|
|
return()
|
|
endif()
|
|
if(DEFINED JAVA_AWT_LIBRARY)
|
|
set(JNI_FOUND FALSE)
|
|
return()
|
|
endif()
|
|
|
|
set(orig_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
|
|
unset(CMAKE_MODULE_PATH)
|
|
include(FindJNI)
|
|
set(CMAKE_MODULE_PATH ${orig_CMAKE_MODULE_PATH})
|