mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
1fa19b06cc
Co-authored-by: Monica <v-liumonica@microsoft.com>
39 lines
1.2 KiB
Diff
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
|