summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-02-29 19:36:33 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-02-29 19:36:33 (GMT)
commitb548b34a117f11f071cf29888e8270a5a398a4e9 (patch)
treed61d050c1e5bf45699bf727cf15f1896ff8770be /Modules
parentf386c2aae09ff4af04a15ceebe41588fcbbae648 (diff)
downloadCMake-b548b34a117f11f071cf29888e8270a5a398a4e9.zip
CMake-b548b34a117f11f071cf29888e8270a5a398a4e9.tar.gz
CMake-b548b34a117f11f071cf29888e8270a5a398a4e9.tar.bz2
ENH: add vs9 stuff, still need msvc9 mfc
Diffstat (limited to 'Modules')
-rw-r--r--Modules/InstallRequiredSystemLibraries.cmake29
1 files changed, 29 insertions, 0 deletions
diff --git a/Modules/InstallRequiredSystemLibraries.cmake b/Modules/InstallRequiredSystemLibraries.cmake
index dcc6107..560beec 100644
--- a/Modules/InstallRequiredSystemLibraries.cmake
+++ b/Modules/InstallRequiredSystemLibraries.cmake
@@ -55,6 +55,35 @@ IF(MSVC)
ENDIF(CMAKE_INSTALL_DEBUG_LIBRARIES)
ENDIF(MSVC80)
+ IF(MSVC90)
+ # Find the runtime library redistribution directory.
+ FIND_PATH(MSVC90_REDIST_DIR NAMES x86/Microsoft.VC90.CRT/Microsoft.VC90.CRT.manifest
+ PATHS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\9.0;InstallDir]/../../VC/redist"
+
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VCExpress\\9.0;InstallDir]/../../VC/redist"
+ )
+ MARK_AS_ADVANCED(MSVC90_REDIST_DIR)
+ SET(MSVC90_CRT_DIR "${MSVC90_REDIST_DIR}/x86/Microsoft.VC90.CRT")
+
+ # Install the manifest that allows DLLs to be loaded from the
+ # directory containing the executable.
+ SET(__install__libs
+ "${MSVC90_CRT_DIR}/Microsoft.VC90.CRT.manifest"
+ "${MSVC90_CRT_DIR}/msvcm90.dll"
+ "${MSVC90_CRT_DIR}/msvcp90.dll"
+ "${MSVC90_CRT_DIR}/msvcr90.dll"
+ )
+ IF(CMAKE_INSTALL_DEBUG_LIBRARIES)
+ SET(MSVC90_CRT_DIR
+ "${MSVC90_REDIST_DIR}/Debug_NonRedist/x86/Microsoft.VC90.DebugCRT")
+ SET(__install__libs ${__install__libs}
+ "${MSVC90_CRT_DIR}/Microsoft.VC90.DebugCRT.manifest"
+ "${MSVC90_CRT_DIR}/msvcm90d.dll"
+ "${MSVC90_CRT_DIR}/msvcp90d.dll"
+ "${MSVC90_CRT_DIR}/msvcr90d.dll"
+ )
+ ENDIF(CMAKE_INSTALL_DEBUG_LIBRARIES)
+ ENDIF(MSVC90)
IF(CMAKE_INSTALL_MFC_LIBRARIES)
IF(MSVC70)
SET(__install__libs ${__install__libs}