aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cryptopp/cmake-support-pem-pack.patch
blob: 4dac21819a58f67a0ee1e592ddde4f5f702f3060 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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