summaryrefslogtreecommitdiffstats
path: root/Modules/FindKDE4.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-07-11 01:38:34 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-07-11 01:38:34 (GMT)
commit3eced4a2229cb4e6c1b7b92397b01b356cbdfedd (patch)
treebdcc49e9682a031535aa451c694b6857e1ccd7d3 /Modules/FindKDE4.cmake
parent1f7e8e6f0bfc19f68fc8009852919866940ae90c (diff)
downloadCMake-3eced4a2229cb4e6c1b7b92397b01b356cbdfedd.zip
CMake-3eced4a2229cb4e6c1b7b92397b01b356cbdfedd.tar.gz
CMake-3eced4a2229cb4e6c1b7b92397b01b356cbdfedd.tar.bz2
STYLE: use EXECUTE_PROCESS() instead of EXEC_PROGRAM()
Alex
Diffstat (limited to 'Modules/FindKDE4.cmake')
-rw-r--r--Modules/FindKDE4.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindKDE4.cmake b/Modules/FindKDE4.cmake
index 7a3a8e7..1344d91 100644
--- a/Modules/FindKDE4.cmake
+++ b/Modules/FindKDE4.cmake
@@ -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)