HDFS-14232. libhdfs is not included in binary tarball. Contributed by Akira Ajisaka.
(cherry picked from commit ec77e95bbd
)
This commit is contained in:
parent
3b47371fe2
commit
8887980d32
|
@ -58,11 +58,19 @@ if(WIN32)
|
||||||
# Omit unneeded headers.
|
# Omit unneeded headers.
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWIN32_LEAN_AND_MEAN")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWIN32_LEAN_AND_MEAN")
|
||||||
set(OS_DIR ${CMAKE_SOURCE_DIR}/main/native/libhdfs/os/windows)
|
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()
|
else()
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
|
||||||
set(OS_DIR ${CMAKE_SOURCE_DIR}/main/native/libhdfs/os/posix)
|
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()
|
endif()
|
||||||
|
|
||||||
# Configure JNI.
|
# Configure JNI.
|
||||||
|
|
Loading…
Reference in New Issue