summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeGenericSystem.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-03 01:16:37 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-03 01:16:37 (GMT)
commitca4b82d9ed74e8ef6b65df384e7ae79a993eb4f9 (patch)
tree4c1a185c195f364fba5de8872f653540072488eb /Modules/CMakeGenericSystem.cmake
parent63b4952f4c125bcfd7bfa3c0fa13e2e48d975ea2 (diff)
downloadCMake-ca4b82d9ed74e8ef6b65df384e7ae79a993eb4f9.zip
CMake-ca4b82d9ed74e8ef6b65df384e7ae79a993eb4f9.tar.gz
CMake-ca4b82d9ed74e8ef6b65df384e7ae79a993eb4f9.tar.bz2
BUG: CMAKE_INSTALL_PREFIX must always have forward slashes.
Diffstat (limited to 'Modules/CMakeGenericSystem.cmake')
-rw-r--r--Modules/CMakeGenericSystem.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CMakeGenericSystem.cmake b/Modules/CMakeGenericSystem.cmake
index 970d777..fc2b95d 100644
--- a/Modules/CMakeGenericSystem.cmake
+++ b/Modules/CMakeGenericSystem.cmake
@@ -49,6 +49,10 @@ ELSE(UNIX)
"${CMAKE_GENERIC_PROGRAM_FILES}/${PROJECT_NAME}"
CACHE PATH "Install path prefix, prepended onto install directories.")
SET(CMAKE_GENERIC_PROGRAM_FILES)
+
+ # Make sure the prefix uses forward slashes.
+ STRING(REGEX REPLACE "\\\\" "/"
+ CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
ENDIF(UNIX)
MARK_AS_ADVANCED(