From d2b0382ec6f67c4f6f2eb422c676db4ea561e490 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 7 Jun 2021 16:39:22 +0800 Subject: [PATCH] cmake: stop detecting since we've dropped the support of GCC older than v8.0, there is no need to detect Signed-off-by: Kefu Chai --- cmake/modules/FindStdFilesystem.cmake | 1 - cmake/modules/FindStdFilesystem_test.cc | 8 +------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/cmake/modules/FindStdFilesystem.cmake b/cmake/modules/FindStdFilesystem.cmake index c66f572459b66..421450c001ea0 100644 --- a/cmake/modules/FindStdFilesystem.cmake +++ b/cmake/modules/FindStdFilesystem.cmake @@ -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) diff --git a/cmake/modules/FindStdFilesystem_test.cc b/cmake/modules/FindStdFilesystem_test.cc index 8b308fff432f3..413ac31796e22 100644 --- a/cmake/modules/FindStdFilesystem_test.cc +++ b/cmake/modules/FindStdFilesystem_test.cc @@ -1,12 +1,6 @@ -#if __has_include() #include + namespace fs = std::filesystem; -#elif __has_include() -#include -namespace fs = std::experimental::filesystem; -#else -#error std::filesystem not available! -#endif int main() { fs::create_directory("sandbox"); -- 2.39.5