Win32: Fix build on VC++ 2008

This is not official support for VC++ 2008.

Fixes #821.
This commit is contained in:
Camilla Löwy
2016-11-16 23:05:47 +01:00
parent f4d0c83181
commit cc9168bda1
3 changed files with 260 additions and 0 deletions
+11
View File
@@ -80,6 +80,17 @@ endif()
# Set compiler specific flags
#--------------------------------------------------------------------
if (MSVC)
if (MSVC90)
# Workaround for VS 2008 not shipping with the DirectX 9 SDK
include(CheckIncludeFile)
check_include_file(dinput.h DINPUT_H_FOUND)
if (NOT DINPUT_H_FOUND)
message(FATAL_ERROR "DirectX 9 SDK not found")
endif()
# Workaround for VS 2008 not shipping with stdint.h
list(APPEND glfw_INCLUDE_DIRS "${GLFW_SOURCE_DIR}/deps/vs2008")
endif()
if (NOT USE_MSVC_RUNTIME_LIBRARY_DLL)
foreach (flag CMAKE_C_FLAGS
CMAKE_C_FLAGS_DEBUG