BUG: CMAKE_INSTALL_PREFIX must always have forward slashes.

This commit is contained in:
Brad King 2006-02-02 20:16:37 -05:00
parent 63b4952f4c
commit ca4b82d9ed
1 changed files with 4 additions and 0 deletions

View File

@ -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(