diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-06-26 17:14:28 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-06-26 17:14:28 (GMT) |
commit | c59603f48eff37eb6c9060cb35451a92d248260c (patch) | |
tree | 6f66d025dee1df3e7a304cf62cc5f43d559a5e91 /Modules/FindKDE4.cmake | |
parent | 19e891532a915d1fa4fcf4cdba6254d28c2adc6c (diff) | |
download | CMake-c59603f48eff37eb6c9060cb35451a92d248260c.zip CMake-c59603f48eff37eb6c9060cb35451a92d248260c.tar.gz CMake-c59603f48eff37eb6c9060cb35451a92d248260c.tar.bz2 |
BUG: don't run KDE4_KDECONFIG_EXECUTABLE if it is notfound
Diffstat (limited to 'Modules/FindKDE4.cmake')
-rw-r--r-- | Modules/FindKDE4.cmake | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Modules/FindKDE4.cmake b/Modules/FindKDE4.cmake index bd69296..8992468 100644 --- a/Modules/FindKDE4.cmake +++ b/Modules/FindKDE4.cmake @@ -42,10 +42,13 @@ IF(NOT KDE4_DATA_DIR) GET_FILENAME_COMPONENT(KDE4_DATA_DIR "${KDE4_DATA_DIR}" PATH) ELSE(CMAKE_CROSSCOMPILING) # then ask kde4-config for the kde data dirs - 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) - # then check the data dirs for FindKDE4Internal.cmake - FIND_PATH(KDE4_DATA_DIR cmake/modules/FindKDE4Internal.cmake ${_data_DIR}) + + IF(KDE4_KDECONFIG_EXECUTABLE) + 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) + # then check the data dirs for FindKDE4Internal.cmake + FIND_PATH(KDE4_DATA_DIR cmake/modules/FindKDE4Internal.cmake ${_data_DIR}) + ENDIF(KDE4_KDECONFIG_EXECUTABLE) ENDIF(CMAKE_CROSSCOMPILING) ENDIF(NOT KDE4_DATA_DIR) |