Files
impala/cmake_modules/FindRapidJson.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

23 lines
565 B
CMake

# - Find rapidjson headers and lib.
# RAPIDJSON_ROOT hints the location
# This module defines RAPIDJSON_INCLUDE_DIR, the directory containing headers
set(RAPIDJSON_SEARCH_HEADER_PATHS
${RAPIDJSON_ROOT}/include
$ENV{IMPALA_HOME}/thirdparty/rapidjson/include/
)
find_path(RAPIDJSON_INCLUDE_DIR rapidjson/rapidjson.h HINTS
${RAPIDJSON_SEARCH_HEADER_PATHS})
if (NOT RAPIDJSON_INCLUDE_DIR)
message(FATA_ERROR "RapidJson headers NOT found.")
set(RAPIDJSON_FOUND FALSE)
else()
set(RAPIDJSON_FOUND TRUE)
endif ()
mark_as_advanced(
RAPIDJSON_INCLUDE_DIR
)