blob: 640bab929c397473fc9deb8f01fd17cc4d82779a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
diff --git a/tests/asio_repe/CMakeLists.txt b/tests/asio_repe/CMakeLists.txt
index 520a6fb..38d65ff 100644
--- a/tests/asio_repe/CMakeLists.txt
+++ b/tests/asio_repe/CMakeLists.txt
@@ -1,14 +1,8 @@
project(asio_repe)
-FetchContent_Declare(
- asio
- GIT_REPOSITORY https://github.com/chriskohlhoff/asio.git
- GIT_TAG asio-1-30-1
- GIT_SHALLOW TRUE
-)
-FetchContent_MakeAvailable(asio)
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(asio GLOBAL IMPORTED_TARGET REQUIRED asio)
add_executable(${PROJECT_NAME} ${PROJECT_NAME}.cpp)
-target_include_directories(${PROJECT_NAME} PRIVATE include ${asio_SOURCE_DIR}/asio/include)
-target_link_libraries(${PROJECT_NAME} PRIVATE glz_test_exceptions)
\ No newline at end of file
+target_link_libraries(${PROJECT_NAME} PRIVATE glz_test_exceptions PkgConfig::asio)
|