Skip to content

Commit

Permalink
CMake: Define NOMINMAX on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Jan 24, 2025
1 parent e800926 commit a683a27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ add_definitions(
)

if(WIN32)
add_definitions(-DUNICODE)
add_definitions(
-DUNICODE
-DNOMINMAX
)
endif()

if(BUILD_WERROR)
Expand Down

0 comments on commit a683a27

Please sign in to comment.