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:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user