forked from Yuzhen11/tangram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdep.cmake
22 lines (21 loc) · 833 Bytes
/
dep.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
### LibHDFS3 ###
find_path(LIBHDFS3_INCLUDE_DIR NAMES hdfs/hdfs.h)
find_library(LIBHDFS3_LIBRARY NAMES hdfs3)
if(LIBHDFS3_INCLUDE_DIR AND LIBHDFS3_LIBRARY)
set(LIBHDFS3_FOUND true)
endif(LIBHDFS3_INCLUDE_DIR AND LIBHDFS3_LIBRARY)
if(LIBHDFS3_FOUND)
set(LIBHDFS3_DEFINITION "-DWITH_HDFS")
if(NOT LIBHDFS3_FIND_QUIETLY)
message (STATUS "Found libhdfs3:")
message (STATUS " (Headers) ${LIBHDFS3_INCLUDE_DIR}")
message (STATUS " (Library) ${LIBHDFS3_LIBRARY}")
message (STATUS " (Definition) ${LIBHDFS3_DEFINITION}")
endif(NOT LIBHDFS3_FIND_QUIETLY)
else(LIBHDFS3_FOUND)
message(STATUS "Could NOT find libhdfs3")
endif(LIBHDFS3_FOUND)
if(WITHOUT_HDFS)
unset(LIBHDFS3_FOUND)
message(STATUS "Not using libhdfs3 due to WITHOUT_HDFS option")
endif(WITHOUT_HDFS)