summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/CMakeLists.txt
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2010-02-10 16:23:07 (GMT)
committerDavid Cole <david.cole@kitware.com>2010-02-10 16:23:07 (GMT)
commit10750bff1c9506513c71653654b64808a4e781c3 (patch)
tree2284d8284fca65404299ef841c73769b9991ddd1 /Tests/CMakeTests/CMakeLists.txt
parentc4205773a5362e943cf05feecacabe6b773e5427 (diff)
downloadCMake-10750bff1c9506513c71653654b64808a4e781c3.zip
CMake-10750bff1c9506513c71653654b64808a4e781c3.tar.gz
CMake-10750bff1c9506513c71653654b64808a4e781c3.tar.bz2
Fix configure time error that occurs when there is a backslash in the HOME environment variable.
Diffstat (limited to 'Tests/CMakeTests/CMakeLists.txt')
-rw-r--r--Tests/CMakeTests/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/CMakeTests/CMakeLists.txt b/Tests/CMakeTests/CMakeLists.txt
index 6df026e..7a176e9 100644
--- a/Tests/CMakeTests/CMakeLists.txt
+++ b/Tests/CMakeTests/CMakeLists.txt
@@ -47,11 +47,12 @@ AddCMakeTest(GetPrerequisites "${GetPrerequisites_PreArgs}")
# by any previous configure, build or test steps.
#
if(do_cvs_tests)
+ string(REPLACE "\\" "/" ENV_HOME "$ENV{HOME}")
set(CheckSourceTree_PreArgs
"-DCMake_BINARY_DIR:PATH=${CMake_BINARY_DIR}"
"-DCMake_SOURCE_DIR:PATH=${CMake_SOURCE_DIR}"
"-DCVS_EXECUTABLE:STRING=${CVS_EXECUTABLE}"
- "-DHOME:STRING=$ENV{HOME}"
+ "-DHOME:STRING=${ENV_HOME}"
)
AddCMakeTest(CheckSourceTree "${CheckSourceTree_PreArgs}")
endif(do_cvs_tests)