Permalink
Browse files

use execute_process instead of exec_program in FindAPACHE.cmake (#4948)

also remove trailing whitespaces as they break builds
  • Loading branch information...
1 parent 9207e86 commit 644d750edf3a128775c271ec53250a470fa7c768 Ezequiel Lara Gómez committed with tbonfort Jul 1, 2014
Showing with 2 additions and 3 deletions.
  1. +2 −3 cmake/FindAPACHE.cmake
@@ -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)

0 comments on commit 644d750

Please sign in to comment.