diff options
-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( |