Skip to content

Commit d19f865

Browse files
committed
add nominmax
1 parent 72256f8 commit d19f865

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES CXX_VISIBILITY_PRESET hidden)
199199
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_20)
200200

201201
if (WIN32)
202+
target_compile_definitions(${PROJECT_NAME} PUBLIC -DNOMINMAX)
202203
if (MSVC)
203204
target_compile_options(${PROJECT_NAME} PUBLIC /bigobj)
204205
endif()

0 commit comments

Comments
 (0)