mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
fix release build compile with MSVC 2015 (finally)
This commit is contained in:
parent
25e8cf4711
commit
e9efc05ebb
2 changed files with 10 additions and 0 deletions
|
|
@ -20,6 +20,9 @@
|
||||||
# IN THE SOFTWARE.
|
# IN THE SOFTWARE.
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# JTH: We require CMake 3.1.4 for MSVC14 compatibility check
|
||||||
|
cmake_minimum_required(VERSION 3.1.4)
|
||||||
|
|
||||||
include(basics.cmake)
|
include(basics.cmake)
|
||||||
|
|
||||||
setupVersionNumbers()
|
setupVersionNumbers()
|
||||||
|
|
|
||||||
|
|
@ -541,6 +541,13 @@ if(WIN32)
|
||||||
if(TORQUE_OPENGL)
|
if(TORQUE_OPENGL)
|
||||||
addLib(OpenGL32.lib)
|
addLib(OpenGL32.lib)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# JTH: DXSDK is compiled with older runtime, and MSVC 2015+ is when __vsnprintf is undefined.
|
||||||
|
# This is a workaround by linking with the older legacy library functions.
|
||||||
|
# See this for more info: http://stackoverflow.com/a/34230122
|
||||||
|
if (MSVC14)
|
||||||
|
addLib(legacy_stdio_definitions.lib)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue