From 3c63d27d2a5d86a362073b9b4d330b4d5132e3be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8B=E9=87=8C=E5=B7=B4=E4=BA=BA?= <119030662+hywing@users.noreply.github.com> Date: Fri, 31 May 2024 10:38:46 +0800 Subject: [PATCH] [fix] solve compiling error in VS2019 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 279440b6..e467d259 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") ) add_definitions(-D_GNU_SOURCE) elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - # Compiler flags and definitions for Visual Studio come here + add_definitions(-DNOMINMAX) endif() add_definitions(-DCONFIG_DEFAULT_LOGLEVEL=1)