vcpkg/ports/elements/fix-dependencies.patch
MonicaLiu 1fa19b06cc
[elements] Update to 2024-09-12 and fix dependencies (#41774)
Co-authored-by: Monica <v-liumonica@microsoft.com>
2024-11-05 12:46:14 -08:00

39 lines
1.2 KiB
Diff

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