Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added find script for FastCGI (used by DisplayCluster WebService)
- Loading branch information
Raphael Dumusc
committed
Jan 28, 2014
1 parent
8324611
commit 2eb58fd
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# - 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) | ||
|