Skip to content

Commit

Permalink
Merge pull request #1972 from Vort/nominmax
Browse files Browse the repository at this point in the history
Fix MSVC compilation for std::max
  • Loading branch information
orignal authored Oct 15, 2023
2 parents 0cc91dd + 0a519d8 commit 0dee060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ if(WIN32)
)

file(GLOB WIN32_RC ${WIN32_SRC_DIR}/*.rc)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWIN32_APP -DWIN32_LEAN_AND_MEAN")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWIN32_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX")

endif()

Expand Down

0 comments on commit 0dee060

Please sign in to comment.