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)