From 1d58db8c9ba117db73be28fa6c5a65a1cdd4e3a2 Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Thu, 14 Feb 2019 13:16:53 +0100 Subject: [PATCH] cmake: Make the tests for finding Filesystem with more serious functions Otherwise it is linked agains lc++ on FreeBSD,a dn that will satisfy both tested libraries. Signed-off-by: Willem Jan Withagen --- cmake/modules/FindStdFilesystem_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/modules/FindStdFilesystem_test.cc b/cmake/modules/FindStdFilesystem_test.cc index 82f2a8b576ba..8b308fff432f 100644 --- a/cmake/modules/FindStdFilesystem_test.cc +++ b/cmake/modules/FindStdFilesystem_test.cc @@ -9,5 +9,6 @@ namespace fs = std::experimental::filesystem; #endif int main() { - [[maybe_unused]] fs::path path("/"); + fs::create_directory("sandbox"); + fs::remove_all("sandbox"); } -- 2.47.3