HDFS-14232. libhdfs is not included in binary tarball. Contributed by Akira Ajisaka.

This commit is contained in:
Takanobu Asanuma 2019-02-04 10:12:09 +09:00
parent b6f90d3957
commit ec77e95bbd

View File

@ -58,11 +58,19 @@ if(WIN32)
# Omit unneeded headers.
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWIN32_LEAN_AND_MEAN")
set(OS_DIR ${CMAKE_SOURCE_DIR}/main/native/libhdfs/os/windows)
set(OUT_DIR target/bin)
# IMPORTANT: OUT_DIR MUST be relative to maven's
# project.build.directory (=target) and match dist-copynativelibs
# in order to be in a release
set(OUT_DIR bin)
else()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
set(OS_DIR ${CMAKE_SOURCE_DIR}/main/native/libhdfs/os/posix)
set(OUT_DIR target/usr/local/lib)
# IMPORTANT: OUT_DIR MUST be relative to maven's
# project.build.directory (=target) and match dist-copynativelibs
# in order to be in a release
set(OUT_DIR native/target/usr/local/lib)
endif()
# Configure JNI.