[Cmake-commits] [cmake-commits] hoffman committed InstallRequiredSystemLibraries.cmake 1.16 1.17

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Dec 17 14:57:51 EST 2009


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv9458

Modified Files:
	InstallRequiredSystemLibraries.cmake 
Log Message:
Fix for bug 9960, add support for MSVC10 runtime dlls.


Index: InstallRequiredSystemLibraries.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/InstallRequiredSystemLibraries.cmake,v
retrieving revision 1.16
retrieving revision 1.17
diff -C 2 -d -r1.16 -r1.17
*** InstallRequiredSystemLibraries.cmake	8 Dec 2009 13:59:25 -0000	1.16
--- InstallRequiredSystemLibraries.cmake	17 Dec 2009 19:57:49 -0000	1.17
***************
*** 115,118 ****
--- 115,146 ----
    ENDIF(MSVC90) 
  
+   IF(MSVC10)
+     # Find the runtime library redistribution directory.
+     FIND_PATH(MSVC10_REDIST_DIR NAMES ${CMAKE_MSVC_ARCH}/Microsoft.VC100.CRT
+       PATHS
+         "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0;InstallDir]/../../VC/redist"
+         "${base_dir}/VC/redist"
+       )
+     MARK_AS_ADVANCED(MSVC10_REDIST_DIR)
+     SET(MSVC10_CRT_DIR "${MSVC10_REDIST_DIR}/${CMAKE_MSVC_ARCH}/Microsoft.VC100.CRT")
+ 
+     # Install the manifest that allows DLLs to be loaded from the
+     # directory containing the executable.
+     SET(__install__libs
+       "${MSVC10_CRT_DIR}/Microsoft.VC100.CRT.manifest"
+       "${MSVC10_CRT_DIR}/msvcp100.dll"
+       "${MSVC10_CRT_DIR}/msvcr100.dll"
+       ) 
+     IF(CMAKE_INSTALL_DEBUG_LIBRARIES)
+       SET(MSVC10_CRT_DIR
+         "${MSVC10_REDIST_DIR}/Debug_NonRedist/${CMAKE_MSVC_ARCH}/Microsoft.VC90.DebugCRT")
+       SET(__install__libs ${__install__libs}
+         "${MSVC10_CRT_DIR}/Microsoft.VC100.DebugCRT.manifest"
+         "${MSVC10_CRT_DIR}/msvcp100d.dll"
+         "${MSVC10_CRT_DIR}/msvcr100d.dll"
+         )
+     ENDIF(CMAKE_INSTALL_DEBUG_LIBRARIES) 
+   ENDIF(MSVC10)
+ 
    IF(CMAKE_INSTALL_MFC_LIBRARIES)
      IF(MSVC70)
***************
*** 208,211 ****
--- 236,280 ----
      ENDIF(MSVC90)
  
+     IF(MSVC10)
+       IF(CMAKE_INSTALL_DEBUG_LIBRARIES)
+         SET(MSVC10_MFC_DIR
+           "${MSVC10_REDIST_DIR}/Debug_NonRedist/${CMAKE_MSVC_ARCH}/Microsoft.VC100.DebugMFC")
+         SET(__install__libs ${__install__libs}
+           "${MSVC10_MFC_DIR}/Microsoft.VC100.DebugMFC.manifest"
+           "${MSVC10_MFC_DIR}/mfc100d.dll"
+           "${MSVC10_MFC_DIR}/mfc100ud.dll"
+           "${MSVC10_MFC_DIR}/mfcm100d.dll"
+           "${MSVC10_MFC_DIR}/mfcm100ud.dll"
+           )
+       ENDIF(CMAKE_INSTALL_DEBUG_LIBRARIES)
+         
+       SET(MSVC10_MFC_DIR "${MSVC10_REDIST_DIR}/${CMAKE_MSVC_ARCH}/Microsoft.VC100.MFC")
+       # Install the manifest that allows DLLs to be loaded from the
+       # directory containing the executable.
+       SET(__install__libs ${__install__libs}
+         "${MSVC10_MFC_DIR}/Microsoft.VC100.MFC.manifest"
+         "${MSVC10_MFC_DIR}/mfc100.dll"
+         "${MSVC10_MFC_DIR}/mfc100u.dll"
+         "${MSVC10_MFC_DIR}/mfcm100.dll"
+         "${MSVC10_MFC_DIR}/mfcm100u.dll"
+         )
+       # include the language dll's for vs10 as well as the actuall dll's
+       SET(MSVC10_MFCLOC_DIR "${MSVC10_REDIST_DIR}/${CMAKE_MSVC_ARCH}/Microsoft.VC100.MFCLOC")
+       # Install the manifest that allows DLLs to be loaded from the
+       # directory containing the executable.
+       SET(__install__libs ${__install__libs}
+         "${MSVC10_MFCLOC_DIR}/Microsoft.VC100.MFCLOC.manifest"
+         "${MSVC10_MFCLOC_DIR}/mfc100chs.dll"
+         "${MSVC10_MFCLOC_DIR}/mfc100cht.dll"
+         "${MSVC10_MFCLOC_DIR}/mfc100enu.dll"
+         "${MSVC10_MFCLOC_DIR}/mfc100esp.dll"
+         "${MSVC10_MFCLOC_DIR}/mfc100deu.dll"
+         "${MSVC10_MFCLOC_DIR}/mfc100fra.dll"
+         "${MSVC10_MFCLOC_DIR}/mfc100ita.dll"
+         "${MSVC10_MFCLOC_DIR}/mfc100jpn.dll"
+         "${MSVC10_MFCLOC_DIR}/mfc100kor.dll"
+         )
+     ENDIF(MSVC10)
+ 
    ENDIF(CMAKE_INSTALL_MFC_LIBRARIES)
  



More information about the Cmake-commits mailing list