From 11314a9cead9f27dcdd075a3a6fddb482bf7c988 Mon Sep 17 00:00:00 2001 From: ClausKlein Date: Fri, 12 Jul 2024 07:18:12 +0200 Subject: [PATCH] Cleanup --- asio-module/AsioConfig.cmake.in | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/asio-module/AsioConfig.cmake.in b/asio-module/AsioConfig.cmake.in index e904acd..ba67514 100644 --- a/asio-module/AsioConfig.cmake.in +++ b/asio-module/AsioConfig.cmake.in @@ -6,23 +6,9 @@ function(add_asio_module NAME) set(ASIO_ROOT @CMAKE_INSTALL_PREFIX@) message(STATUS "ASIO_ROOT is: ${ASIO_ROOT}") - # if(PROJECT_IS_TOP_LEVEL) - # include(CheckCXXSymbolExists) - # check_cxx_symbol_exists(snprintf cstdio ASIO_HAS_SNPRINTF) - # check_cxx_symbol_exists(sprintf_s cstdio ASIO_HAS_SECURE_RTL) - # endif() - - # list(APPEND CPPdefinitions ASIO_NO_DEPRECATED ASIO_STANDALONE) - # if(ASIO_HAS_SECURE_RTL) - # list(APPEND CPPdefinitions ASIO_HAS_SECURE_RTL) - # elseif(ASIO_HAS_SNPRINTF) - # list(APPEND CPPdefinitions ASIO_HAS_SNPRINTF) - # endif() - add_library(${NAME}) target_include_directories(${NAME} PRIVATE ${ASIO_ROOT}/include) target_compile_features(${NAME} PUBLIC cxx_std_23) - #XXX target_compile_options(${NAME} PRIVATE -Wno-include-angled-in-module-purview) if(DEFINED CPPdefinitions) target_compile_definitions(${NAME} PUBLIC ${CPPdefinitions})