remove: boost filesystem use.
This commit is contained in:
parent
b9e7bdb734
commit
1d84054da9
@ -6,11 +6,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_SYSTEM_NAME MATCHES "Windows")
|
|||||||
message(FATAL_ERROR "Unsupported MinGW Currently.")
|
message(FATAL_ERROR "Unsupported MinGW Currently.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(DEFINED USE_BOOST)
|
|
||||||
message(STATUS "crashelper use boost lib.")
|
|
||||||
include_directories(${MBOOST_INCLUDE_DIR})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(CRASHELPER_SOURCES
|
set(CRASHELPER_SOURCES
|
||||||
src/crashelper.cxx
|
src/crashelper.cxx
|
||||||
)
|
)
|
||||||
@ -29,9 +24,4 @@ target_link_options(crashelper PUBLIC $<$<OR:$<STREQUAL:$<CXX_COMPILER_ID>,MSVC>
|
|||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Unsupported OS: ${CMAKE_SYSTEM_NAME}. This project only supports Linux, macOS, and Windows.")
|
message(FATAL_ERROR "Unsupported OS: ${CMAKE_SYSTEM_NAME}. This project only supports Linux, macOS, and Windows.")
|
||||||
endif()
|
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)
|
target_include_directories(crashelper PUBLIC include)
|
@ -1,14 +1,8 @@
|
|||||||
#include "crashelper.h"
|
#include "crashelper.h"
|
||||||
|
#include <filesystem>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#ifdef USE_BOOST
|
|
||||||
#include <boost/filesystem.hpp>
|
|
||||||
namespace fs = boost::filesystem;
|
|
||||||
#else
|
|
||||||
#include <filesystem>
|
|
||||||
namespace fs = std::filesystem;
|
namespace fs = std::filesystem;
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace backward {
|
namespace backward {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user