Skip to content

Commit

Permalink
cmake: stop detecting <experimental/filesystem>
Browse files Browse the repository at this point in the history
since we've dropped the support of GCC older than v8.0, there is no need
to detect <experimental/filesystem>

Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Jun 9, 2021
1 parent b6e6d15 commit d2b0382
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion cmake/modules/FindStdFilesystem.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ set(_std_filesystem_already_included FALSE)
foreach(library
""
"stdc++fs"
"c++experimental"
"c++fs")
try_std_filesystem_library("${library}" StdFilesystem_LIBRARY _std_filesystem_already_included)
if(_std_filesystem_already_included)
Expand Down
8 changes: 1 addition & 7 deletions cmake/modules/FindStdFilesystem_test.cc
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#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");
Expand Down

0 comments on commit d2b0382

Please sign in to comment.