[ox/fs] Make macOS builds use Boost FileSystem
This commit is contained in:
parent
6493a5e10e
commit
845373e049
9
deps/ox/src/ox/fs/CMakeLists.txt
vendored
9
deps/ox/src/ox/fs/CMakeLists.txt
vendored
@ -10,10 +10,19 @@ 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,6 +15,10 @@
|
||||
|
||||
#include "filesystem.hpp"
|
||||
|
||||
#ifdef OX_USE_BOOSTFS
|
||||
using std::filesystem = boost::filesystem;
|
||||
#endif
|
||||
|
||||
namespace ox {
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user