From e80bc721f55b4c3c6f1fc571373269826491d7ca Mon Sep 17 00:00:00 2001 From: cliffg-softwarelibre Date: Fri, 4 Apr 2025 19:33:20 -0600 Subject: [PATCH] Changing cmake include structure --- CMakeLists.txt | 1 + cmake/download_asio_cpm.cmake | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8113e73..4ba154d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,7 @@ add_library ( chops::periodic_timer ALIAS periodic_timer ) # thread support specified in Asio download +include ( cmake/download_cpm.cmake ) include ( cmake/download_asio_cpm.cmake ) # configure library target diff --git a/cmake/download_asio_cpm.cmake b/cmake/download_asio_cpm.cmake index 702d4f6..93df15b 100644 --- a/cmake/download_asio_cpm.cmake +++ b/cmake/download_asio_cpm.cmake @@ -10,7 +10,6 @@ set ( CMAKE_THREAD_PREFER_PTHREAD TRUE ) set ( THREADS_PREFER_PTHREAD_FLAG TRUE ) find_package ( Threads REQUIRED ) -include ( cmake/download_cpm.cmake ) CPMAddPackage ( "gh:chriskohlhoff/asio#asio-1-34-0@1.34.0" ) # ASIO doesn't use CMake, we have to configure it manually. Extra notes for using on Windows: