-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://svn.osgeo.org/qgis/trunk@14111 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
mhugent
committed
Aug 21, 2010
1 parent
98d7559
commit 4e4643d
Showing
1 changed file
with
39 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,39 @@ | ||
# 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 | ||
#MSVC | ||
"$ENV{LIB_DIR}/include" | ||
#mingw | ||
c:/msys/local/include | ||
) | ||
FIND_LIBRARY(FCGI_LIBRARY NAMES fcgi PATHS | ||
/usr/local/lib | ||
/usr/lib | ||
#MSVC | ||
"$ENV{LIB_DIR}/lib" | ||
#mingw | ||
c:/msys/local/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) |