aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/elements/fix-dependencies.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/elements/fix-dependencies.patch')
-rw-r--r--vcpkg/ports/elements/fix-dependencies.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/vcpkg/ports/elements/fix-dependencies.patch b/vcpkg/ports/elements/fix-dependencies.patch
new file mode 100644
index 0000000..81fda99
--- /dev/null
+++ b/vcpkg/ports/elements/fix-dependencies.patch
@@ -0,0 +1,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