mirror of
https://github.com/apache/impala.git
synced 2026-01-06 06:01:03 -05:00
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
23 lines
565 B
CMake
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
|
|
)
|