FindFCGI.cmake 612 B

123456789101112131415161718192021
  1. # Look for the header file.
  2. find_path(FCGI_INCLUDE_DIR NAMES fastcgi.h)
  3. # Look for the library.
  4. find_library(FCGI_LIBRARY NAMES fcgi)
  5. # Handle the QUIETLY and REQUIRED arguments and set FCGI_FOUND to TRUE if all listed variables are TRUE.
  6. include(FindPackageHandleStandardArgs)
  7. FIND_PACKAGE_HANDLE_STANDARD_ARGS(FCGI DEFAULT_MSG FCGI_LIBRARY FCGI_INCLUDE_DIR)
  8. # Copy the results to the output variables.
  9. if(FCGI_FOUND)
  10. set(FCGI_LIBRARIES ${FCGI_LIBRARY})
  11. set(FCGI_INCLUDE_DIRS ${FCGI_INCLUDE_DIR})
  12. else()
  13. set(FCGI_LIBRARIES)
  14. set(FCGI_INCLUDE_DIRS)
  15. endif()
  16. mark_as_advanced(FCGI_INCLUDE_DIR FCGI_LIBRARY)