diff --git a/Modules/FindJNI.cmake b/Modules/FindJNI.cmake index 707d1fa275..78b4781c4d 100644 --- a/Modules/FindJNI.cmake +++ b/Modules/FindJNI.cmake @@ -195,14 +195,13 @@ FIND_PATH(JAVA_INCLUDE_PATH jni.h ) FIND_PATH(JAVA_INCLUDE_PATH2 jni_md.h - ${JAVA_AWT_INCLUDE_DIRECTORIES} + ${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH}/win32 ${JAVA_INCLUDE_PATH}/linux ${JAVA_INCLUDE_PATH}/freebsd ) FIND_PATH(JAVA_AWT_INCLUDE_PATH jawt.h - ${JAVA_AWT_INCLUDE_DIRECTORIES} ${JAVA_INCLUDE_PATH} )