[QGIS Commit] r14111 - trunk/qgis/cmake
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sat Aug 21 05:31:44 EDT 2010
Author: mhugent
Date: 2010-08-21 09:31:44 +0000 (Sat, 21 Aug 2010)
New Revision: 14111
Added:
trunk/qgis/cmake/FindFcgi.cmake
Log:
Also add cmake file for fcgi
Added: trunk/qgis/cmake/FindFcgi.cmake
===================================================================
--- trunk/qgis/cmake/FindFcgi.cmake (rev 0)
+++ trunk/qgis/cmake/FindFcgi.cmake 2010-08-21 09:31:44 UTC (rev 14111)
@@ -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)
More information about the QGIS-commit
mailing list