aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/abumq-ripe/devendoring.patch
blob: 8163a3613ef493c2560b4bf331c4dcfa2f4280eb (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
34
35
36
37
38
39
40
41
42
43
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4500382..e1a2c95 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,8 +36,6 @@ if (APPLE)
     endif()
 endif()
 
-list (APPEND CMAKE_CXX_FLAGS "  ")
-
 if (dll)
     add_definitions (-DRIPE_DLL)
 endif()
@@ -48,9 +46,8 @@ endif()
 
 # Check for cryptopp (static)
 set(CryptoPP_USE_STATIC_LIBS ON)
-find_package(CryptoPP REQUIRED)
-message ("-- Crypto++ binary: " ${CRYPTOPP_LIBRARY})
-include_directories (${CRYPTOPP_INCLUDE_DIRS})
+find_package(CRYPTOPP NAMES cryptopp CONFIG REQUIRED)
+set(CRYPTOPP_LIBRARIES cryptopp::cryptopp)

 find_package(ZLIB REQUIRED)
 if (ZLIB_FOUND)
@@ -92,7 +89,7 @@ set_target_properties(ripe PROPERTIES
 )
 
 target_link_libraries(ripe
-    ${CRYPTOPP_LIBRARIES}
+    cryptopp::cryptopp
     ${ZLIB_LIBRARIES}
 )
 
@@ -107,7 +104,7 @@ install (FILES include/Ripe.h DESTINATION "include")
 
 add_executable (ripe-bin src/ripe.cc lib/Ripe.cc)
 #target_link_libraries (ripe-bin ripe)
-target_link_libraries (ripe-bin ${CRYPTOPP_LIBRARIES} ${ZLIB_LIBRARIES})
+target_link_libraries (ripe-bin cryptopp::cryptopp ${ZLIB_LIBRARIES})
 
 set_target_properties (ripe-bin PROPERTIES
     OUTPUT_NAME "ripe"