From fc810dc87b663acd4a870e8adef55c33b6c2e961 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sat, 7 Oct 2017 00:06:58 +0300 Subject: [PATCH] Fix for msvc --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fde1b9415..37a00912e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -181,6 +181,7 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES MSVC) set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Ox /Ot /Oi /MT /GL") add_definitions(/D_CRT_SECURE_NO_WARNINGS) add_definitions(/D_CRT_NONSTDC_NO_WARNINGS) + add_definitions(/DNOMINMAX) elseif (CMAKE_CXX_COMPILER_ID MATCHES Clang)