Skip to content

Commit

Permalink
use execute_process instead of exec_program in FindAPACHE.cmake (#4948)
Browse files Browse the repository at this point in the history
also remove trailing whitespaces as they break builds
  • Loading branch information
Ezequiel Lara Gómez authored and tbonfort committed Aug 26, 2014
1 parent 9207e86 commit 644d750
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmake/FindAPACHE.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ find_program(HTTPD_EXECUTABLE NAMES httpd
)

if(APXS_BIN)
EXEC_PROGRAM(${APXS_BIN}
ARGS -q LIBEXECDIR
OUTPUT_VARIABLE APACHE_MODULE_DIR )
EXECUTE_PROCESS(COMMAND ${APXS_BIN} -q LIBEXECDIR
OUTPUT_VARIABLE APACHE_MODULE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
endif(APXS_BIN)

include(FindPackageHandleStandardArgs)
Expand Down

0 comments on commit 644d750

Please sign in to comment.