diff options
author | Brad King <brad.king@kitware.com> | 2006-02-03 01:16:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-02-03 01:16:37 (GMT) |
commit | ca4b82d9ed74e8ef6b65df384e7ae79a993eb4f9 (patch) | |
tree | 4c1a185c195f364fba5de8872f653540072488eb /Modules/CMakeGenericSystem.cmake | |
parent | 63b4952f4c125bcfd7bfa3c0fa13e2e48d975ea2 (diff) | |
download | CMake-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.cmake | 4 |
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( |