Files
impala/cmake_modules/FindBoostMultiPrecision.cmake
Martin Grund a4f84b1b1a Making CMake modules more modular for non-toolchain build
This patch makes sure that the Impala-lzo build can pickup the
cmake modules from Impala to avoid code duplication on the lzo side.

Change-Id: I7917946724ce4bfaa281e708e9ea5799b4e2cd37
Reviewed-on: http://gerrit.cloudera.org:8080/552
Reviewed-by: Martin Grund <mgrund@cloudera.com>
Tested-by: Internal Jenkins
2015-07-22 02:01:34 +00:00

31 lines
937 B
CMake

# - Find Boost Multi Precision library (cpp_int.h)
# This is a header only library so we just need to set the include dir
set(BOOST_MULTI_PRECISION_SEARCH_HEADER_PATH
$ENV{IMPALA_HOME}/thirdparty/boost_multiprecision
)
find_file(BOOST_MULTI_PRECISION_HEADER NAMES cpp_int.hpp
PATHS ${BOOST_MULTI_PRECISION_SEARCH_HEADER_PATH}
NO_DEFAULT_PATH
DOC "Boost Multi Precision Library"
)
if (BOOST_MULTI_PRECISION_HEADER)
set(BOOST_MULTI_PRECISION_FOUND TRUE)
set(BOOST_MULTI_PRECISION_INCLUDE_DIR ${BOOST_MULTI_PRECISION_SEARCH_HEADER_PATH})
else ()
set(BOOST_MULTI_PRECISION_FOUND FALSE)
endif ()
if (BOOST_MULTI_PRECISION_FOUND)
message(STATUS "Boost Multi Precision found in ${BOOST_MULTI_PRECISION_INCLUDE_DIR}")
else ()
message(STATUS "Boost Multip Precision NOT found. "
"Header should be in ${BOOST_MULTI_PRECISION_SEARCH_HEADER_PATH}")
endif ()
mark_as_advanced(
BOOST_MULTI_PRECISION_INCLUDE_DIR
)