-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing cmake files for Linux build and module.
- Loading branch information
Showing
8 changed files
with
65 additions
and
31 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
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 |
---|---|---|
@@ -1,13 +1,23 @@ | ||
FIND_PROGRAM(APXS_BIN NAMES apxs apxs2 | ||
PATH_SUFFIXES httpd apache apache2) | ||
|
||
if(APXS_BIN) | ||
EXECUTE_PROCESS(COMMAND ${APXS_BIN} -q INCLUDEDIR OUTPUT_VARIABLE APXS_INCLUDE_DIR) | ||
EXECUTE_PROCESS(COMMAND ${APXS_BIN} -q LIBEXECDIR OUTPUT_VARIABLE APXS_MODULE_DIR ) | ||
#message(WARNING "APXS was found ${AXPS_INCLUDE_DIR}") | ||
else(APXS_BIN) | ||
# message(WARNING "APXS not found") | ||
|
||
endif(APXS_BIN) | ||
|
||
|
||
set(APACHE_INCLUDE_DIRS ${APXS_INCLUDE_DIR}) | ||
set(APACHE_MODULE_DIRS ${APXS_MODULE_DIR}) | ||
|
||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(APXS DEFAULT_MSG APXS_BIN APXS_INCLUDE_DIR APXS_MODULE_DIR) | ||
mark_as_advanced(APXS_BIN APXS_INCLUDE_DIR APXS_MODULE_DIR) | ||
|
||
|
||
if(NOT DEFINED APACHE_MODULE_DIR) | ||
find_program(APXS_BIN NAMES apxs apxs2 | ||
PATH_SUFFIXES httpd apache apache2 | ||
) | ||
|
||
if(APXS_BIN) | ||
EXEC_PROGRAM(${APXS_BIN} | ||
ARGS -q LIBEXECDIR | ||
OUTPUT_VARIABLE APACHE_MODULE_DIR ) | ||
endif(APXS_BIN) | ||
endif(NOT DEFINED APACHE_MODULE_DIR) | ||
|
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
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
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
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
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
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