diff --git a/Modules/FindJNI.cmake b/Modules/FindJNI.cmake index e90988d7e..111b6ba27 100644 --- a/Modules/FindJNI.cmake +++ b/Modules/FindJNI.cmake @@ -37,6 +37,9 @@ IF(APPLE) IF(EXISTS /Library/Frameworks/JavaEmbedding.framework) SET(JAVA_HAVE_FRAMEWORK 1) ENDIF(EXISTS /Library/Frameworks/JavaEmbedding.framework) + IF(EXISTS /System/Library/Frameworks/JavaEmbedding.framework) + SET(JAVA_HAVE_FRAMEWORK 1) + ENDIF(EXISTS /System/Library/Frameworks/JavaEmbedding.framework) IF(JAVA_HAVE_FRAMEWORK) IF(NOT JAVA_LIBRARY) SET (JAVA_LIBRARY "-framework JavaVM -framework JavaEmbedding" CACHE FILEPATH "Java Frameworks" FORCE)