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

(cherry picked from commit ec77e95bbd)
This commit is contained in:
Takanobu Asanuma 2019-02-04 10:12:09 +09:00
parent 3b47371fe2
commit 8887980d32
1 changed files with 10 additions and 2 deletions

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.