STYLE: use EXECUTE_PROCESS() instead of EXEC_PROGRAM()

Alex
This commit is contained in:
Alexander Neundorf 2007-07-10 21:38:34 -04:00
parent 1f7e8e6f0b
commit 3eced4a222
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ ENDIF (NOT KDE4_KDECONFIG_EXECUTABLE)
IF (KDE4_KDECONFIG_EXECUTABLE)
# then ask kde4-config for the kde data dirs
EXEC_PROGRAM(${KDE4_KDECONFIG_EXECUTABLE} ARGS --path data OUTPUT_VARIABLE _data_DIR )
EXECUTE_PROCESS(COMMAND "${KDE4_KDECONFIG_EXECUTABLE}" --path data OUTPUT_VARIABLE _data_DIR ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
FILE(TO_CMAKE_PATH "${_data_DIR}" _data_DIR)