X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fcmake%2Fmodules%2FFindfcgi.cmake;fp=src%2Fceph%2Fcmake%2Fmodules%2FFindfcgi.cmake;h=f355b924fd38c33f44c7e106935e4eb572b36362;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/cmake/modules/Findfcgi.cmake b/src/ceph/cmake/modules/Findfcgi.cmake new file mode 100644 index 0000000..f355b92 --- /dev/null +++ b/src/ceph/cmake/modules/Findfcgi.cmake @@ -0,0 +1,22 @@ +# 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) +find_library(FCGI_LIBRARY NAMES fcgi libfcgi PATHS + /usr/local/lib + /usr/lib) + +# handle the QUIETLY and REQUIRED arguments and set UUID_FOUND to TRUE if +# all listed variables are TRUE +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(fcgi DEFAULT_MSG FCGI_LIBRARY FCGI_INCLUDE_DIR) + +mark_as_advanced(FCGI_LIBRARY FCGI_INCLUDE_DIR)