summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindStdFilesystem_test.cc
blob: 8b308fff432f36bfe3e74573d07a4cd0101b6880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#if __has_include(<filesystem>)
#include <filesystem>
namespace fs = std::filesystem;
#elif __has_include(<experimental/filesystem>)
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
#else
#error std::filesystem not available!
#endif

int main() {
    fs::create_directory("sandbox");
    fs::remove_all("sandbox");
}