mirror of
https://github.com/apache/impala.git
synced 2026-01-26 12:02:21 -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
27 lines
781 B
CMake
27 lines
781 B
CMake
# - Find Mustache (mustache.h and mustache.c)
|
|
# This module defines
|
|
# MUSTACHE_INCLUDE_DIR, directory containing headers
|
|
# MUSTACHE_SRC_DIR, directory containing source
|
|
# MUSTACHE_FOUND, whether the Mustache library has been located
|
|
|
|
find_path(MUSTACHE_INCLUDE_DIR mustache/mustache.h HINTS $ENV{IMPALA_HOME}/thirdparty)
|
|
find_path(MUSTACHE_SRC_DIR mustache.cc HINTS $ENV{IMPALA_HOME}/thirdparty/mustache)
|
|
|
|
if (MUSTACHE_INCLUDE_DIR)
|
|
set(MUSTACHE_FOUND TRUE)
|
|
else ()
|
|
set(MUSTACHE_FOUND FALSE)
|
|
endif ()
|
|
|
|
if (MUSTACHE_FOUND)
|
|
if (NOT MUSTACHE_FIND_QUIETLY)
|
|
message(STATUS "Mustache template library found in ${MUSTACHE_INCLUDE_DIR}")
|
|
endif ()
|
|
else ()
|
|
message(STATUS "Mustache template library includes NOT found. ")
|
|
endif ()
|
|
|
|
mark_as_advanced(
|
|
MUSTACHE_INCLUDE_DIR
|
|
)
|