aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cryptopp/cmake-support-pem-pack.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/cryptopp/cmake-support-pem-pack.patch')
-rw-r--r--vcpkg/ports/cryptopp/cmake-support-pem-pack.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/vcpkg/ports/cryptopp/cmake-support-pem-pack.patch b/vcpkg/ports/cryptopp/cmake-support-pem-pack.patch
new file mode 100644
index 0000000..4dac218
--- /dev/null
+++ b/vcpkg/ports/cryptopp/cmake-support-pem-pack.patch
@@ -0,0 +1,33 @@
+diff --git a/cryptopp/sources.cmake b/cryptopp/sources.cmake
+index 7918f03..58d74e2 100644
+--- a/cryptopp/sources.cmake
++++ b/cryptopp/sources.cmake
+@@ -182,6 +182,14 @@ set(cryptopp_SOURCES
+ zlib.cpp
+ )
+
++if (CRYPTOPP_PEM_PACK)
++ list(APPEND cryptopp_SOURCES
++ pem-com.cpp
++ pem-rd.cpp
++ pem-wr.cpp
++ )
++endif()
++
+ # ***** Library headers *****
+ set(cryptopp_HEADERS
+ 3way.h
+@@ -374,6 +382,13 @@ set(cryptopp_HEADERS
+ zlib.h
+ )
+
++if (CRYPTOPP_PEM_PACK)
++ list(APPEND cryptopp_HEADERS
++ pem-com.h
++ pem.h
++ )
++endif()
++
+ # ***** Test sources *****
+ set(cryptopp_SOURCES_TEST
+ # adhoc.cpp