remove: boost filesystem use.

This commit is contained in:
taynpg 2025-05-18 00:22:39 +08:00
parent fbc26d565f
commit e1624c7145
2 changed files with 1 additions and 16 deletions

View File

@ -31,21 +31,12 @@ if(DEFINED USE_TEST)
enable_testing()
add_subdirectory(test)
endif()
if(DEFINED USE_BOOST)
message(STATUS "ofen use boost lib.")
include_directories(${MBOOST_INCLUDE_DIR})
link_directories(${MBOOST_LIB_DIR})
endif()
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE})
add_library(ofen STATIC ${SRC_FILES})
target_include_directories(ofen PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include ${CMAKE_CURRENT_SOURCE_DIR}/3rd)
if(DEFINED USE_BOOST)
target_link_directories(ofen PRIVATE ${MBOOST_LIB_DIR})
target_link_libraries(ofen PRIVATE ${MBOOST_LIBS})
endif()
if(UNIX)
execute_process(
COMMAND uname -a

View File

@ -1,15 +1,9 @@
#include "of_path.h"
#include "of_str.h"
#include <filesystem>
#include <fstream>
#include <regex>
#ifdef USE_BOOST
#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;
#else
#include <filesystem>
namespace fs = std::filesystem;
#endif
#ifdef _WIN32
#include <windows.h>