remove: boost filesystem use.

This commit is contained in:
taynpg 2025-05-18 00:24:44 +08:00
parent b9e7bdb734
commit 1d84054da9
2 changed files with 1 additions and 17 deletions

View File

@ -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 $<$<OR:$<STREQUAL:$<CXX_COMPILER_ID>,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)

View File

@ -1,14 +1,8 @@
#include "crashelper.h"
#include <filesystem>
#include <fstream>
#include <string>
#ifdef USE_BOOST
#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;
#else
#include <filesystem>
namespace fs = std::filesystem;
#endif
namespace backward {