From ce225b288823ab050b751246be8b88d7e6676837 Mon Sep 17 00:00:00 2001 From: Karutoh Date: Tue, 25 Mar 2025 19:42:40 -0700 Subject: [PATCH] Fixed CMakeLists and BaseICMP.cpp. --- CMakeLists.txt | 13 +++++-------- src/io/socket/BaseICMP.cpp | 2 -- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 930f78b..8a5a021 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -193,12 +193,10 @@ set(EHS_SOURCES include/ehs/io/socket/ehc/NetClientCh.h src/io/socket/ehc/NetClientCh.cpp src/io/socket/ehc/NetServerCh.cpp - src/io/socket/ehc/NetUtils.cpp - src/io/socket/BaseICMP.cpp - include/ehs/io/socket/ICMP_LNX.h - src/io/socket/ICMP_LNX.cpp - include/ehs/io/socket/ICMP.h - src/io/socket/ICMP_LNX.cpp + src/io/socket/ehc/NetUtils.cpp + include/ehs/io/socket/BaseICMP.h src/io/socket/BaseICMP.cpp + include/ehs/io/socket/ICMP_LNX.h src/io/socket/ICMP_LNX.cpp + include/ehs/io/socket/ICMP.h ) if (IS_OS_WINDOWS) @@ -262,8 +260,7 @@ endif() #message("${CMAKE_CXX_FLAGS}") add_library(EHS_Stc STATIC ${EHS_SOURCES}) -add_library(EHS_Dyn SHARED ${EHS_SOURCES} - include/ehs/io/socket/BaseICMP.h) +add_library(EHS_Dyn SHARED ${EHS_SOURCES}) add_executable(StrToHash src/StrToHash.cpp) target_compile_definitions(EHS_Dyn PRIVATE EHS_LIB_EXPORT) diff --git a/src/io/socket/BaseICMP.cpp b/src/io/socket/BaseICMP.cpp index 4559e99..48af730 100644 --- a/src/io/socket/BaseICMP.cpp +++ b/src/io/socket/BaseICMP.cpp @@ -1,8 +1,6 @@ #include "ehs/io/socket/BaseICMP.h" #include "ehs/Serializer.h" -#include - namespace ehs {