aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/qca/0003-Define-NOMINMAX-for-botan-plugin-with-MSVC.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/qca/0003-Define-NOMINMAX-for-botan-plugin-with-MSVC.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/qca/0003-Define-NOMINMAX-for-botan-plugin-with-MSVC.patch')
-rw-r--r--vcpkg/ports/qca/0003-Define-NOMINMAX-for-botan-plugin-with-MSVC.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/vcpkg/ports/qca/0003-Define-NOMINMAX-for-botan-plugin-with-MSVC.patch b/vcpkg/ports/qca/0003-Define-NOMINMAX-for-botan-plugin-with-MSVC.patch
new file mode 100644
index 0000000..d894000
--- /dev/null
+++ b/vcpkg/ports/qca/0003-Define-NOMINMAX-for-botan-plugin-with-MSVC.patch
@@ -0,0 +1,28 @@
+From f32f5ae8b8b49653bfff87f2f882862bcaa8c3f1 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=D9=85=D9=87=D8=AF=D9=8A=20=D8=B4=D9=8A=D9=86=D9=88=D9=86?=
+ =?UTF-8?q?=20=28Mehdi=20Chinoune=29?= <mehdi.chinoune@hotmail.com>
+Date: Mon, 20 Mar 2023 16:21:18 +0100
+Subject: [PATCH] Define NOMINMAX to fix building qca-botan plugin with MSVC
+
+---
+ plugins/qca-botan/CMakeLists.txt | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/plugins/qca-botan/CMakeLists.txt b/plugins/qca-botan/CMakeLists.txt
+index 11c0d20..9b8b978 100644
+--- a/plugins/qca-botan/CMakeLists.txt
++++ b/plugins/qca-botan/CMakeLists.txt
+@@ -11,6 +11,10 @@ if(BOTAN_FOUND)
+ set(QCA_BOTAN_SOURCES qca-botan.cpp)
+ add_library(qca-botan ${PLUGIN_TYPE} ${QCA_BOTAN_SOURCES})
+
++ if(MSVC)
++ target_compile_definitions(qca-botan PRIVATE NOMINMAX)
++ endif()
++
+ if(APPLE AND ${PLUGIN_TYPE} STREQUAL "MODULE")
+ set_property(TARGET qca-botan PROPERTY SUFFIX ".dylib")
+ endif()
+--
+2.40.0.windows.1
+