Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Jul 12, 2024
1 parent a748e07 commit 11314a9
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions asio-module/AsioConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 11314a9

Please sign in to comment.