From a167e96dbd339df99b77faf10131a9b1efe2c309 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 9 Nov 2026 22:27:55 +0000 Subject: [PATCH] refactor(cmake): remove unused asio find module and bundle script - Nothing includes Findasio.cmake or extern/bundled_asio.cmake - FairMQ uses Boost.Asio and has no asio submodule Co-Authored-By: Claude Sonnet 5.5 --- cmake/Findasio.cmake | 46 --------------------------------------- extern/bundled_asio.cmake | 17 --------------- 2 files changed, 63 deletions(-) delete mode 100644 cmake/Findasio.cmake delete mode 100644 extern/bundled_asio.cmake diff --git a/cmake/Findasio.cmake b/cmake/Findasio.cmake deleted file mode 100644 index e5c1f9f4..00000000 --- a/cmake/Findasio.cmake +++ /dev/null @@ -1,46 +0,0 @@ -################################################################################ -# Copyright (C) 2019-2021 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH # -# # -# This software is distributed under the terms of the # -# GNU Lesser General Public Licence (LGPL) version 3, # -# copied verbatim in the file "LICENSE" # -################################################################################ - -find_path(asio_INCLUDE_DIR - NAMES asio.hpp - PATH_SUFFIXES include -) - -if(asio_INCLUDE_DIR) - find_file(asio_VERSION_HEADER "asio/version.hpp" - ${asio_INCLUDE_DIR} - NO_DEFAULT_PATH - ) -endif() - -if(asio_VERSION_HEADER) - file(READ "${asio_VERSION_HEADER}" _asio_VERSION_HEADER_CONTENT) - string(REGEX MATCH "#define ASIO_VERSION ([0-9]+)" _MATCH "${_asio_VERSION_HEADER_CONTENT}") - set(asio_VERSION_MACRO ${CMAKE_MATCH_1}) - math(EXPR asio_VERSION_MAJOR "${asio_VERSION_MACRO} / 100000") - math(EXPR asio_VERSION_MINOR "${asio_VERSION_MACRO} / 100 % 1000") - math(EXPR asio_VERSION_PATCH "${asio_VERSION_MACRO} % 100") - set(asio_VERSION "${asio_VERSION_MAJOR}.${asio_VERSION_MINOR}.${asio_VERSION_PATCH}") -endif() - - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(asio - REQUIRED_VARS asio_INCLUDE_DIR - VERSION_VAR asio_VERSION - HANDLE_COMPONENTS -) - -if(asio_FOUND AND NOT TARGET asio::asio) - add_library(asio::asio INTERFACE IMPORTED) - set_target_properties(asio::asio PROPERTIES - INTERFACE_COMPILE_DEFINITIONS "ASIO_STANDALONE" - INTERFACE_INCLUDE_DIRECTORIES "${asio_INCLUDE_DIR}" - ) -endif() - diff --git a/extern/bundled_asio.cmake b/extern/bundled_asio.cmake deleted file mode 100644 index 91919802..00000000 --- a/extern/bundled_asio.cmake +++ /dev/null @@ -1,17 +0,0 @@ -################################################################################ -# Copyright (C) 2019 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH # -# # -# This software is distributed under the terms of the # -# GNU Lesser General Public Licence (LGPL) version 3, # -# copied verbatim in the file "LICENSE" # -################################################################################ - -if(NOT TARGET asio::headers) - if(Git_FOUND) - execute_process( - COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive --depth 1 -- extern/asio - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} - ) - endif() - -endif()