Core/Tools: Fix compilation of tools under windows (#312)

This commit is contained in:
Iny
2017-01-06 13:36:09 +01:00
committed by Francesco Borzì
parent 092b9c85e1
commit a655ddcbc0

View File

@@ -42,6 +42,10 @@ message(STATUS "MSVC: Disabled NON-SECURE warnings")
add_definitions(-D_CRT_NONSTDC_NO_WARNINGS) add_definitions(-D_CRT_NONSTDC_NO_WARNINGS)
message(STATUS "MSVC: Disabled POSIX 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 # disable warnings in Visual Studio 8 and above if not wanted
if(NOT WITH_WARNINGS) if(NOT WITH_WARNINGS)
if(MSVC AND NOT CMAKE_GENERATOR MATCHES "Visual Studio 7") if(MSVC AND NOT CMAKE_GENERATOR MATCHES "Visual Studio 7")