pineapple-src/externals/vcpkg/ports/folly/fix-windows-minmax.patch
2022-07-23 03:01:36 +02:00

13 lines
710 B
Diff
Executable File

diff --git a/CMake/FollyCompilerMSVC.cmake b/CMake/FollyCompilerMSVC.cmake
index ec2ce1a1d..16deda71c 100644
--- a/CMake/FollyCompilerMSVC.cmake
+++ b/CMake/FollyCompilerMSVC.cmake
@@ -289,6 +289,7 @@ function(apply_folly_compile_options_to_target THETARGET)
# And the extra defines:
target_compile_definitions(${THETARGET}
PUBLIC
+ NOMINMAX
_CRT_NONSTDC_NO_WARNINGS # Don't deprecate posix names of functions.
_CRT_SECURE_NO_WARNINGS # Don't deprecate the non _s versions of various standard library functions, because safety is for chumps.
_SCL_SECURE_NO_WARNINGS # Don't deprecate the non _s versions of various standard library functions, because safety is for chumps.