mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-05 06:08:41 -06:00
ENH: use jni.h to determine java version
This commit is contained in:
@@ -677,7 +677,7 @@ IF(BUILD_TESTING)
|
||||
--build-run-dir "${CMake_BINARY_DIR}/Tests/Java/"
|
||||
--test-command ${JAVA_RUNTIME} -classpath hello.jar HelloWorld)
|
||||
ELSE("${JNI_FILE}" MATCHES JDK1_2)
|
||||
MESSAGE("No Java Test because ${JNI_FILE} does not contain JDK1_2 define")
|
||||
MESSAGE("No Java Test because ${JNI_H} does not contain JDK1_2 define")
|
||||
ENDIF("${JNI_FILE}" MATCHES JDK1_2)
|
||||
ELSE(JNI_H)
|
||||
MESSAGE("No Java Test because jni.h could not be found. tried:\n${JNIPATH}/../include and ${JNIPATH}/../java/include")
|
||||
|
||||
Reference in New Issue
Block a user