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

26 lines
724 B
CMake

# - Find Squeasel (squeasel.h and squeasel.c)
# This module defines
# SQUEASEL_INCLUDE_DIR, directory containing headers
# SQUEASEL_SRC_DIR, directory containing source
find_path(SQUEASEL_INCLUDE_DIR squeasel/squeasel.h HINTS $ENV{IMPALA_HOME}/thirdparty)
find_path(SQUEASEL_SRC_DIR squeasel.c HINTS $ENV{IMPALA_HOME}/thirdparty/squeasel)
if (SQUEASEL_INCLUDE_DIR)
set(SQUEASEL_FOUND TRUE)
else ()
set(SQUEASEL_FOUND FALSE)
endif ()
if (SQUEASEL_FOUND)
if (NOT SQUEASEL_FIND_QUIETLY)
message(STATUS "Squeasel web server library found in ${SQUEASEL_INCLUDE_DIR}")
endif ()
else ()
message(FATAL_ERROR "Squeasel web server library includes NOT found. ")
endif ()
mark_as_advanced(
SQUEASEL_INCLUDE_DIR
)