summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2004-06-09 22:01:44 (GMT)
committerKen Martin <ken.martin@kitware.com>2004-06-09 22:01:44 (GMT)
commit4b55ff77491b5dfcaa6ca02a266a7c5084f7ec59 (patch)
tree5c69e6cd984cc53d88cc52ce294ac94bab7d284e /Source
parent9e85e3a27ec7c4faf9a81086503ae6138683ac13 (diff)
downloadCMake-4b55ff77491b5dfcaa6ca02a266a7c5084f7ec59.zip
CMake-4b55ff77491b5dfcaa6ca02a266a7c5084f7ec59.tar.gz
CMake-4b55ff77491b5dfcaa6ca02a266a7c5084f7ec59.tar.bz2
ERR: Do not use the binary directory as a regular expression.
Diffstat (limited to 'Source')
-rw-r--r--Source/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index eef8ca3..96422c6 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -630,14 +630,16 @@ IF(BUILD_TESTING)
ENDIF (CMAKE_WXWINDOWS_WXCONFIG_EXECUTABLE OR WXWINDOWS_INCLUDE_DIR)
IF(UNIX)
- IF("x${CMAKE_INSTALL_PREFIX}" MATCHES "^x${CMake_BINARY_DIR}/Tests/TestShellInstall/Prefix$")
+ STRING(COMPARE EQUAL "${CMAKE_INSTALL_PREFIX}" "${CMake_BINARY_DIR}/Tests/TestShellInstall/Prefix"
+ PREFIX_IS_FOR_TEST)
+ IF(PREFIX_IS_FOR_TEST)
CONFIGURE_FILE(
${CMake_SOURCE_DIR}/Tests/TestInstall.sh.in
${CMake_BINARY_DIR}/Tests/TestShellInstall/TestInstall.sh
@ONLY IMMEDIATE
)
ADD_TEST(ShellInstall /bin/sh ${CMake_BINARY_DIR}/Tests/TestShellInstall/TestShellInstall.sh)
- ENDIF("x${CMAKE_INSTALL_PREFIX}" MATCHES "^x${CMake_BINARY_DIR}/Tests/TestShellInstall/Prefix$")
+ ENDIF(PREFIX_IS_FOR_TEST)
ENDIF(UNIX)
ENDIF(BUILD_TESTING)