Skip to content

Commit

Permalink
swapping from c17 filesystem to boost
Browse files Browse the repository at this point in the history
  • Loading branch information
will-rowe committed Aug 22, 2020
1 parent 95e92be commit 1ba582d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ set(ARTIC_LINK_LIBRARIES ${HTS_LIB} ${ARTIC_LINK_LIBRARIES})
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.45.0 REQUIRED)
find_package(Boost 1.45.0 COMPONENTS filesystem REQUIRED)

# cli11, spdlog
add_subdirectory(extlibs/CLI11)
Expand Down
6 changes: 3 additions & 3 deletions artic/primerSchemeDownloader.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <filesystem>
#include <boost/filesystem.hpp>
#include <iostream>
#include <map>

Expand Down Expand Up @@ -78,8 +78,8 @@ void artic::DownloadScheme(const std::string& schemeName, unsigned int requested
std::stringstream of2;
if (outDir.size() != 0)
{
if (!std::filesystem::is_directory(outDir) || !std::filesystem::exists(outDir))
std::filesystem::create_directory(outDir);
if (!boost::filesystem::is_directory(outDir) || !boost::filesystem::exists(outDir))
boost::filesystem::create_directory(outDir);
of1 << outDir << "/";
of2 << outDir << "/";
}
Expand Down

0 comments on commit 1ba582d

Please sign in to comment.