aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/elements/fix-dependencies.patch
blob: 81fda9946fa5c4907bc019a457a11b59b45a8698 (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
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index e84ca98..7a06ed2 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -226,14 +226,7 @@ endif()
 ###############################################################################
 # Cycfi Infra
 
-FetchContent_Declare(
-  cycfi_infra
-  GIT_REPOSITORY https://github.com/cycfi/infra.git
-  GIT_TAG master
-  GIT_SUBMODULES_RECURSE ON
-)
-
-FetchContent_MakeAvailable(cycfi_infra)
+add_subdirectory(infra)
 target_link_libraries(elements PUBLIC cycfi::infra)
 
 ###############################################################################
@@ -272,15 +265,8 @@ endif()
 ###############################################################################
 # Asio headers
 
-FetchContent_Declare(
-  asio
-  GIT_REPOSITORY https://github.com/chriskohlhoff/asio.git
-  GIT_TAG asio-1-29-0
-  GIT_SHALLOW TRUE
-)
-FetchContent_MakeAvailable(asio)
-
-target_include_directories(elements PUBLIC ${asio_SOURCE_DIR}/asio/include)
+find_package(asio CONFIG REQUIRED)
+target_include_directories(elements PUBLIC ${ASIO_INCLUDE_DIR})
 
 ###############################################################################
 # Global options