2011-08-12 15:57:36 +02:00
|
|
|
# Look for the header file.
|
2012-08-30 19:14:39 +02:00
|
|
|
find_path(FCGI_INCLUDE_DIR NAMES fastcgi.h)
|
2011-08-12 15:57:36 +02:00
|
|
|
|
|
|
|
# Look for the library.
|
2012-08-30 19:14:39 +02:00
|
|
|
find_library(FCGI_LIBRARY NAMES fcgi)
|
2011-08-12 15:57:36 +02:00
|
|
|
|
|
|
|
# Handle the QUIETLY and REQUIRED arguments and set FCGI_FOUND to TRUE if all listed variables are TRUE.
|
2012-08-30 19:14:39 +02:00
|
|
|
include(FindPackageHandleStandardArgs)
|
2011-08-12 15:57:36 +02:00
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FCGI DEFAULT_MSG FCGI_LIBRARY FCGI_INCLUDE_DIR)
|
|
|
|
|
|
|
|
# Copy the results to the output variables.
|
2012-08-30 19:14:39 +02:00
|
|
|
if(FCGI_FOUND)
|
|
|
|
set(FCGI_LIBRARIES ${FCGI_LIBRARY})
|
|
|
|
set(FCGI_INCLUDE_DIRS ${FCGI_INCLUDE_DIR})
|
2012-08-30 19:20:03 +02:00
|
|
|
else()
|
2012-08-30 19:14:39 +02:00
|
|
|
set(FCGI_LIBRARIES)
|
|
|
|
set(FCGI_INCLUDE_DIRS)
|
2012-08-30 19:20:03 +02:00
|
|
|
endif()
|
2011-08-12 15:57:36 +02:00
|
|
|
|
2012-08-30 19:14:39 +02:00
|
|
|
mark_as_advanced(FCGI_INCLUDE_DIR FCGI_LIBRARY)
|