From a655ddcbc02f90d08683c834e0d0e3b95ea216d2 Mon Sep 17 00:00:00 2001 From: Iny Date: Fri, 6 Jan 2017 13:36:09 +0100 Subject: [PATCH] Core/Tools: Fix compilation of tools under windows (#312) --- .../nucleus/src/cmake/compiler/msvc/settings.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/worldengine/nucleus/src/cmake/compiler/msvc/settings.cmake b/modules/worldengine/nucleus/src/cmake/compiler/msvc/settings.cmake index f303b6ed7..caca79ee3 100644 --- a/modules/worldengine/nucleus/src/cmake/compiler/msvc/settings.cmake +++ b/modules/worldengine/nucleus/src/cmake/compiler/msvc/settings.cmake @@ -42,6 +42,10 @@ message(STATUS "MSVC: Disabled NON-SECURE warnings") add_definitions(-D_CRT_NONSTDC_NO_WARNINGS) message(STATUS "MSVC: Disabled POSIX warnings") +#Ignore warnings about INTMAX_MAX +add_definitions(-D__STDC_LIMIT_MACROS) +message(STATUS "MSVC: Disabled INTMAX_MAX warnings") + # disable warnings in Visual Studio 8 and above if not wanted if(NOT WITH_WARNINGS) if(MSVC AND NOT CMAKE_GENERATOR MATCHES "Visual Studio 7")