mirror of
https://github.com/love2d/megasource.git
synced 2026-08-12 00:20:55 +02:00
Find dynamic runtime libraries for MSVC11.
This commit is contained in:
@@ -42,6 +42,24 @@ function(disable_warnings ARG_TARGET)
|
||||
set_target_properties(${ARG_TARGET} PROPERTIES COMPILE_FLAGS ${NEW_FLAGS})
|
||||
endfunction()
|
||||
|
||||
# Look for dynamic runtime DLLs.
|
||||
if(MSVC11)
|
||||
set(VS110COMNTOOLS "$ENV{VS110COMNTOOLS}")
|
||||
if(${VS110COMNTOOLS} STREQUAL "")
|
||||
message(WARNING "Environment variable VS110COMNTOOLS not defined. Is VS11 properly installed?")
|
||||
else()
|
||||
get_filename_component(VS110_REDIST_DIR ${VS110COMNTOOLS}/../../VC/redist/${MEGA_ARCH}/Microsoft.VC110.CRT ABSOLUTE)
|
||||
set(MSVCP110_DLL ${VS110_REDIST_DIR}/msvcp110.dll)
|
||||
set(MSVCR110_DLL ${VS110_REDIST_DIR}/msvcr110.dll)
|
||||
if(EXISTS ${MSVCP110_DLL} AND EXISTS ${MSVCR110_DLL})
|
||||
message(STATUS "Found msvcp110.dll, msvcr110.dll")
|
||||
set(MEGA_MSVC_DLLS ${MSVCP110_DLL} ${MSVCR110_DLL})
|
||||
else()
|
||||
message(WARNING "Could not find msvcp110.dll, msvcr110.dll")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(MEGA_ZLIB_VER "1.2.8")
|
||||
set(MEGA_PHYSFS_VER "2.0.3")
|
||||
set(MEGA_LUA51_VER "5.1.5")
|
||||
|
||||
Reference in New Issue
Block a user