Skip to content

Commit

Permalink
Add macro NOMINMAX for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Dec 2, 2023
1 parent 969d517 commit 02ec2fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ if (ENABLE_USE_WOLFSSL)
if (NOT (CMAKE_CXX_COMPILER_ID STREQUAL "Clang"))
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-stringop-overflow")
endif()
elseif (MSVC)
add_definitions(-DNOMINMAX)
endif()

add_subdirectory(third_party/wolfssl)
Expand Down

0 comments on commit 02ec2fb

Please sign in to comment.