From: Willem Jan Withagen Date: Thu, 14 Feb 2019 12:16:53 +0000 (+0100) Subject: cmake: Make the tests for finding Filesystem with more serious functions X-Git-Tag: v14.1.0~110^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1d58db8c9ba117db73be28fa6c5a65a1cdd4e3a2;p=ceph-ci.git 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 --- diff --git a/cmake/modules/FindStdFilesystem_test.cc b/cmake/modules/FindStdFilesystem_test.cc index 82f2a8b576b..8b308fff432 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"); }