diff --git a/Modules/FindJNI.cmake b/Modules/FindJNI.cmake index 694bc965d..45e6c2037 100644 --- a/Modules/FindJNI.cmake +++ b/Modules/FindJNI.cmake @@ -96,7 +96,7 @@ ELSE(APPLE) FIND_LIBRARY(JAVA_AWT_LIBRARY jawt PATHS ${JAVA_AWT_LIBRARY_DIRECTORIES} ) - FIND_LIBRARY(JAVA_JVM_LIBRARY jvm + FIND_LIBRARY(JAVA_JVM_LIBRARY NAMES jvm JavaVM PATHS ${JAVA_JVM_LIBRARY_DIRECTORIES} ) ENDIF(APPLE)