diff options
author | Chris Robinson <[email protected]> | 2018-11-08 04:15:16 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-08 04:15:16 -0800 |
commit | 29435ad9668198dd8dc7c21182f3663ec27dd81f (patch) | |
tree | e02f2b0fe6950610086f9b76035d064149188fa6 | |
parent | 22c8330200b55001e76760336268a606081bc55f (diff) |
Prevent MSVC's dumb min/max macros
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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) |