Find dynamic runtime libraries for MSVC12.

This commit is contained in:
rude
2013-10-23 00:10:10 +02:00
parent 8e9ed21c15
commit 8991bc2102
+15
View File
@@ -60,6 +60,21 @@ if(MSVC11)
message(WARNING "Could not find msvcp110.dll, msvcr110.dll")
endif()
endif()
elseif(MSVC12)
set(VS120COMNTOOLS "$ENV{VS120COMNTOOLS}")
if(${VS120COMNTOOLS} STREQUAL "")
message(WARNING "Environment variable VS120COMNTOOLS not defined. Is VS12 properly installed?")
else()
get_filename_component(VS120_REDIST_DIR ${VS120COMNTOOLS}/../../VC/redist/${MEGA_ARCH}/Microsoft.VC120.CRT ABSOLUTE)
set(MSVCP120_DLL ${VS120_REDIST_DIR}/msvcp120.dll)
set(MSVCR120_DLL ${VS120_REDIST_DIR}/msvcr120.dll)
if(EXISTS ${MSVCP120_DLL} AND EXISTS ${MSVCR120_DLL})
message(STATUS "Found msvcp120.dll, msvcr120.dll")
set(MEGA_MSVC_DLLS ${MSVCP120_DLL} ${MSVCR120_DLL})
else()
message(WARNING "Could not find msvcp120.dll, msvcr120.dll")
endif()
endif()
endif()
set(MEGA_ZLIB_VER "1.2.8")