正在显示
1 个修改的文件
包含
31 行增加
和
0 行删除
cmake/FindAPACHE.cmake
0 → 100644
1 | +# | |
2 | +# APACHE_FOUND - System has APACHE | |
3 | +# APACHE_INCLUDE_DIR - The APACHE include directory | |
4 | +# | |
5 | +# APACHE_LOCATION | |
6 | +# setting this enables search for apache libraries / headers in this location | |
7 | + | |
8 | +# | |
9 | +# Include directories | |
10 | +# | |
11 | +find_path(APACHE_INCLUDE_DIR | |
12 | + NAMES httpd.h | |
13 | + PATH_SUFFIXES httpd apache apache2 apache22 apache24 | |
14 | +) | |
15 | + | |
16 | +if(NOT DEFINED APACHE_MODULE_DIR) | |
17 | + find_program(APXS_BIN NAMES apxs apxs2 | |
18 | + PATH_SUFFIXES httpd apache apache2 | |
19 | + ) | |
20 | + | |
21 | + if(APXS_BIN) | |
22 | + EXECUTE_PROCESS(COMMAND ${APXS_BIN} -q LIBEXECDIR | |
23 | + OUTPUT_VARIABLE APACHE_MODULE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE) | |
24 | + endif(APXS_BIN) | |
25 | +endif(NOT DEFINED APACHE_MODULE_DIR) | |
26 | + | |
27 | +include(FindPackageHandleStandardArgs) | |
28 | +# handle the QUIETLY and REQUIRED arguments and set APACHE_FOUND to TRUE if | |
29 | +# all listed variables are TRUE | |
30 | +find_package_handle_standard_args(APACHE DEFAULT_MSG APACHE_INCLUDE_DIR ) | |
31 | +mark_as_advanced(APACHE_INCLUDE_DIR) | ... | ... |
请
注册
或
登录
后发表评论