diff --git a/bin/dsn.cmake b/bin/dsn.cmake index 4dcdf4d103..fb89e36998 100644 --- a/bin/dsn.cmake +++ b/bin/dsn.cmake @@ -312,6 +312,7 @@ function(dsn_setup_thirdparty_libs) # libhdfs find_package(JNI REQUIRED) message (STATUS "JAVA_JVM_LIBRARY=${JAVA_JVM_LIBRARY}") + link_libraries(${JAVA_JVM_LIBRARY}) link_directories(${DSN_THIRDPARTY_ROOT}/lib) link_directories(${DSN_THIRDPARTY_ROOT}/lib64)