Use QUIET to avoid Java status messages.
CMake devs mostly do not care when Java is found successfully.
This commit is contained in:
parent
2eab3b2cbb
commit
20a6f6cf7a
|
@ -1630,7 +1630,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF(NOT CMAKE_TEST_GENERATOR MATCHES "Xcode")
|
IF(NOT CMAKE_TEST_GENERATOR MATCHES "Xcode")
|
||||||
INCLUDE(FindJava)
|
find_package(Java QUIET)
|
||||||
IF(JAVA_COMPILE AND JAVA_RUNTIME AND JAVA_ARCHIVE AND NOT MINGW)
|
IF(JAVA_COMPILE AND JAVA_RUNTIME AND JAVA_ARCHIVE AND NOT MINGW)
|
||||||
GET_FILENAME_COMPONENT(JNIPATH ${JAVA_COMPILE} PATH)
|
GET_FILENAME_COMPONENT(JNIPATH ${JAVA_COMPILE} PATH)
|
||||||
FIND_FILE(JNI_H jni.h
|
FIND_FILE(JNI_H jni.h
|
||||||
|
|
Loading…
Reference in New Issue