From 1d84054da9ec3a70ae1311d6166a9404a10a356c Mon Sep 17 00:00:00 2001 From: taynpg Date: Sun, 18 May 2025 00:24:44 +0800 Subject: [PATCH] remove: boost filesystem use. --- crashelper/CMakeLists.txt | 10 ---------- crashelper/src/crashelper.cxx | 8 +------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/crashelper/CMakeLists.txt b/crashelper/CMakeLists.txt index a9d3456..81f1733 100644 --- a/crashelper/CMakeLists.txt +++ b/crashelper/CMakeLists.txt @@ -6,11 +6,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_SYSTEM_NAME MATCHES "Windows") message(FATAL_ERROR "Unsupported MinGW Currently.") endif() -if(DEFINED USE_BOOST) -message(STATUS "crashelper use boost lib.") -include_directories(${MBOOST_INCLUDE_DIR}) -endif() - set(CRASHELPER_SOURCES src/crashelper.cxx ) @@ -29,9 +24,4 @@ target_link_options(crashelper PUBLIC $<$,MSVC> else() message(FATAL_ERROR "Unsupported OS: ${CMAKE_SYSTEM_NAME}. This project only supports Linux, macOS, and Windows.") endif() - -if(DEFINED USE_BOOST) -target_link_directories(crashelper PRIVATE ${MBOOST_LIB_DIR}) -target_link_libraries(crashelper PRIVATE ${MBOOST_LIBS}) -endif() target_include_directories(crashelper PUBLIC include) \ No newline at end of file diff --git a/crashelper/src/crashelper.cxx b/crashelper/src/crashelper.cxx index 4e57fec..9d1dcdd 100644 --- a/crashelper/src/crashelper.cxx +++ b/crashelper/src/crashelper.cxx @@ -1,14 +1,8 @@ #include "crashelper.h" +#include #include #include - -#ifdef USE_BOOST -#include -namespace fs = boost::filesystem; -#else -#include namespace fs = std::filesystem; -#endif namespace backward {