[ox/fs] Remove Boost FS usage
This commit is contained in:
parent
aefd65b9e9
commit
ce7c416fb7
9
deps/ox/src/ox/fs/CMakeLists.txt
vendored
9
deps/ox/src/ox/fs/CMakeLists.txt
vendored
@ -10,19 +10,10 @@ add_library(
|
||||
)
|
||||
|
||||
if(NOT OX_BARE_METAL)
|
||||
if(APPLE)
|
||||
find_package(Boost COMPONENTS system filesystem REQUIRED)
|
||||
set(BOOST_LIBS ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY})
|
||||
target_compile_definitions(
|
||||
OxFS PUBLIC
|
||||
OX_USE_BOOSTFS
|
||||
)
|
||||
endif()
|
||||
target_link_libraries(
|
||||
OxFS PUBLIC
|
||||
$<$<CXX_COMPILER_ID:Clang>:c++fs>
|
||||
$<$<CXX_COMPILER_ID:GNU>:stdc++fs>
|
||||
${BOOST_LIBS}
|
||||
)
|
||||
set_property(
|
||||
TARGET
|
||||
|
@ -15,15 +15,6 @@
|
||||
|
||||
#define OX_PASSTHROUGHFS_HAS_DEPENDENCIES
|
||||
|
||||
#elif defined(OX_USE_BOOSTFS)
|
||||
|
||||
#include <boost/filesystem>
|
||||
#include <string>
|
||||
|
||||
using std::filesystem = boost::filesystem;
|
||||
|
||||
#define OX_PASSTHROUGHFS_HAS_DEPENDENCIES
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef OX_PASSTHROUGHFS_HAS_DEPENDENCIES
|
||||
|
Loading…
x
Reference in New Issue
Block a user