From 29435ad9668198dd8dc7c21182f3663ec27dd81f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 8 Nov 2018 04:15:16 -0800 Subject: Prevent MSVC's dumb min/max macros --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba1db905..e7a35edc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -289,7 +289,7 @@ IF(NOT CMAKE_DEBUG_POSTFIX) ENDIF() IF(MSVC) - SET(CPP_DEFS ${CPP_DEFS} _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_DEPRECATE) + SET(CPP_DEFS ${CPP_DEFS} _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_DEPRECATE NOMIXMAX) SET(C_FLAGS ${C_FLAGS} /wd4098 /wd4200) IF(NOT DXSDK_DIR) -- cgit v1.2.3