diff --git a/CMakeLists.txt b/CMakeLists.txt index 18449d4..491c7c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/artic/primerSchemeDownloader.cpp b/artic/primerSchemeDownloader.cpp index 471c6de..b5fbe36 100644 --- a/artic/primerSchemeDownloader.cpp +++ b/artic/primerSchemeDownloader.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include @@ -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 << "/"; }