We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5191512 commit 0beb518Copy full SHA for 0beb518
CMakeLists.txt
@@ -280,6 +280,12 @@ else()
280
restore_variable(DESTINATION CMAKE_CXX_CLANG_TIDY BACKUP CMAKE_CXX_CLANG_TIDY_BKP)
281
endif()
282
283
+# Add the NOMINMAX macro for windows to curl to prevent issues with std::min and std::max down the line.
284
+# Ref: https://github.com/libcpr/cpr/issues/957
285
+if(WIN32)
286
+ target_compile_definitions(CURL::libcurl PUBLIC NOMINMAX)
287
+endif()
288
+
289
# GTest configuration
290
if(CPR_BUILD_TESTS)
291
if(CPR_USE_SYSTEM_GTEST)
0 commit comments