1
0
mirror of https://github.com/ceph/ceph synced 2024-12-16 16:39:21 +00:00
ceph/cmake/modules/Findfcgi.cmake
Daniel Gryniewicz a6c8b46101 CMake - fix check for fcgi
Signed-off-by: Daniel Gryniewicz <dang@fprintf.net>
2015-09-23 10:55:54 -04:00

43 lines
1.1 KiB
CMake

# CMake module to search for FastCGI headers
#
# If it's found it sets FCGI_FOUND to TRUE
# and following variables are set:
# FCGI_INCLUDE_DIR
# FCGI_LIBRARY
FIND_PATH(FCGI_INCLUDE_DIR
fcgio.h
PATHS
/usr/include
/usr/local/include
/usr/include/fastcgi
"$ENV{LIB_DIR}/include"
$ENV{INCLUDE}
)
FIND_LIBRARY(FCGI_LIBRARY NAMES fcgi libfcgi PATHS
/usr/local/lib
/usr/lib
"$ENV{LIB_DIR}/lib"
"$ENV{LIB}"
)
IF (FCGI_INCLUDE_DIR AND FCGI_LIBRARY)
SET(FCGI_FOUND TRUE)
ENDIF (FCGI_INCLUDE_DIR AND FCGI_LIBRARY)
IF (FCGI_FOUND)
IF (NOT FCGI_FIND_QUIETLY)
MESSAGE(STATUS "Found FCGI: ${FCGI_LIBRARY}")
ENDIF (NOT FCGI_FIND_QUIETLY)
ELSE (FCGI_FOUND)
IF (FCGI_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find FCGI")
ENDIF (FCGI_FIND_REQUIRED)
ENDIF (FCGI_FOUND)
# handle the QUIETLY and REQUIRED arguments and set UUID_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(fcgi DEFAULT_MSG FCGI_LIBRARY FCGI_INCLUDE_DIR)
mark_as_advanced(UUID_LIBRARIES UUID_INCLUDE_DIR)