diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/aws-c-common/disable-internal-crt-option.patch | |
Diffstat (limited to 'vcpkg/ports/aws-c-common/disable-internal-crt-option.patch')
| -rw-r--r-- | vcpkg/ports/aws-c-common/disable-internal-crt-option.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/ports/aws-c-common/disable-internal-crt-option.patch b/vcpkg/ports/aws-c-common/disable-internal-crt-option.patch new file mode 100644 index 0000000..28cb478 --- /dev/null +++ b/vcpkg/ports/aws-c-common/disable-internal-crt-option.patch @@ -0,0 +1,20 @@ +diff --git a/cmake/AwsCFlags.cmake b/cmake/AwsCFlags.cmake +index 470f6db..537536b 100644 +--- a/cmake/AwsCFlags.cmake ++++ b/cmake/AwsCFlags.cmake +@@ -82,15 +82,6 @@ function(aws_set_common_properties target) + list(APPEND AWS_C_FLAGS /DAWS_SUPPORT_WIN7=1) + endif() + +- # Set MSVC runtime libary. +- # Note: there are other ways of doing this if we bump our CMake minimum to 3.14+ +- # See: https://cmake.org/cmake/help/latest/policy/CMP0091.html +- if (AWS_STATIC_MSVC_RUNTIME_LIBRARY OR STATIC_CRT) +- list(APPEND AWS_C_FLAGS "/MT$<$<CONFIG:Debug>:d>") +- else() +- list(APPEND AWS_C_FLAGS "/MD$<$<CONFIG:Debug>:d>") +- endif() +- + else() + list(APPEND AWS_C_FLAGS -Wall -Wstrict-prototypes) + |