1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

cmake: fix FindJava/FindJNI wrappers for cmake re-runs

when cmake is re-run and include(FindJAVA) is skipped,
JAVA_FOUND should still be set. Same for JNI.
This commit is contained in:
Sergei Golubchik
2021-05-14 19:55:53 +02:00
parent 6bf866cc79
commit f9f8cae9fe
2 changed files with 10 additions and 0 deletions

View File

@@ -1,4 +1,9 @@
if(Java_JAVA_EXECUTABLE)
set(JAVA_FOUND TRUE)
return()
endif()
if(DEFINED Java_JAVA_EXECUTABLE)
set(JAVA_FOUND FALSE)
return()
endif()