summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-02-03 13:38:34 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-02-03 13:38:34 (GMT)
commit5b2b40d34b0129893ac2a99c3987a8867d33efa6 (patch)
tree91e8067faa6dbe28fece507a5cfd252d3d3e4a6f /Modules
parentfeafe2abee6f8390bfdecae39380928fee5ebacc (diff)
downloadCMake-5b2b40d34b0129893ac2a99c3987a8867d33efa6.zip
CMake-5b2b40d34b0129893ac2a99c3987a8867d33efa6.tar.gz
CMake-5b2b40d34b0129893ac2a99c3987a8867d33efa6.tar.bz2
BUG: fix potential issue with empty strings
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindKDE3.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindKDE3.cmake b/Modules/FindKDE3.cmake
index 0cf8b24..0ae94dc 100644
--- a/Modules/FindKDE3.cmake
+++ b/Modules/FindKDE3.cmake
@@ -106,13 +106,13 @@ IF(KDECONFIG_EXECUTABLE)
EXECUTE_PROCESS(COMMAND ${KDECONFIG_EXECUTABLE} --version
OUTPUT_VARIABLE kde_config_version )
- STRING(REGEX MATCH "KDE: .\\." kde_version ${kde_config_version})
- IF (${kde_version} MATCHES "KDE: 3\\.")
+ STRING(REGEX MATCH "KDE: .\\." kde_version "${kde_config_version}")
+ IF ("${kde_version}" MATCHES "KDE: 3\\.")
EXECUTE_PROCESS(COMMAND ${KDECONFIG_EXECUTABLE} --prefix
OUTPUT_VARIABLE kdedir )
STRING(REGEX REPLACE "\n" "" KDE3PREFIX "${kdedir}")
- ENDIF (${kde_version} MATCHES "KDE: 3\\.")
+ ENDIF ("${kde_version}" MATCHES "KDE: 3\\.")
ENDIF(KDECONFIG_EXECUTABLE)