forked from Eyescale/CMake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFindFCGI.cmake
More file actions
25 lines (19 loc) · 778 Bytes
/
FindFCGI.cmake
File metadata and controls
25 lines (19 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# - Try to Find libfastcgi
# Once done this will define
# FCGI_FOUND
# FCGI_INCLUDE_DIRS
# FCGI_LIBRARIES
# Look for the header file.
find_path(FCGI_INCLUDE_DIR NAMES fastcgi.h fcgi.h fcgio.h)
# Look for the library.
find_library(FCGI_LIBRARY NAMES fcgi)
find_library(FCGIPP_LIBRARY NAMES fcgi++)
# Handle the QUIETLY and REQUIRED arguments and set FCGI_FOUND to TRUE if all listed variables are TRUE.
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(FCGI DEFAULT_MSG FCGI_INCLUDE_DIR FCGI_LIBRARY FCGIPP_LIBRARY)
# Copy the results to the output variables.
if(FCGI_FOUND)
set(FCGI_LIBRARIES ${FCGI_LIBRARY} ${FCGIPP_LIBRARY})
set(FCGI_INCLUDE_DIRS ${FCGI_INCLUDE_DIR})
endif()
mark_as_advanced(FCGI_INCLUDE_DIR FCGI_LIBRARY FCGIPP_LIBRARY)