remove: boost filesystem using.
This commit is contained in:
commit
1a35e43719
@ -13,10 +13,6 @@ if(DEFINED IOS_ISH)
|
||||
message(STATUS "filecomplete USE IOS_ISH")
|
||||
add_definitions(-DIOS_ISH)
|
||||
endif()
|
||||
if(DEFINED USE_BOOST)
|
||||
message(STATUS "filecomplete use boost lib.")
|
||||
include_directories(${MBOOST_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
MESSAGE(STATUS "Add MinGW Param.")
|
||||
@ -34,10 +30,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE}
|
||||
|
||||
add_library(filecomplete STATIC filecomplete.h filecomplete.cpp)
|
||||
target_include_directories(filecomplete PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
if(DEFINED USE_BOOST)
|
||||
target_link_directories(filecomplete PRIVATE ${MBOOST_LIB_DIR})
|
||||
target_link_libraries(filecomplete PRIVATE ${MBOOST_LIBS})
|
||||
endif()
|
||||
|
||||
if(DEFINED GEN_EXAMPLE)
|
||||
message(STATUS "USE TEST")
|
||||
add_executable(example main.cpp)
|
||||
|
@ -1,19 +1,13 @@
|
||||
#include "filecomplete.h"
|
||||
#include <cstring>
|
||||
#include <filesystem>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <regex>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#ifdef USE_BOOST
|
||||
#include <boost/filesystem.hpp>
|
||||
namespace fs = boost::filesystem;
|
||||
#else
|
||||
#include <filesystem>
|
||||
namespace fs = std::filesystem;
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||
|
Loading…
x
Reference in New Issue
Block a user