]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: extract std::filesystem linkage checking into module
authorKefu Chai <kchai@redhat.com>
Sat, 28 Jul 2018 02:36:20 +0000 (10:36 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 29 Jul 2018 12:25:32 +0000 (20:25 +0800)
commite6c7e0f521f38040c51b1115f5a9968a35fca87d
treef35830d62999cb1a01f240235b420366a358d72e
parenta92fee76f12ab29a2bcbe9101bd5e86b867f52e5
cmake: extract std::filesystem linkage checking into module

see
https://libcxx.llvm.org/docs/UsingLibcxx.html#using-libc-experimental-and-experimental,

> Note that as of libc++ 7.0 using the <experimental/filesystem>
> requires linking libc++fs instead of libc++experimental.

do not build ceph_test_admin_socket_output if we are not able to find
the library for std::experimental::filesystem . it is a workaround of
https://reviews.freebsd.org/D10840 where FreeBSD 11.2 does not ship
libc++experimental.a .

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt
cmake/modules/FindStdFilesystem.cmake [new file with mode: 0644]
cmake/modules/FindStdFilesystem_test.cc [new file with mode: 0644]
librarytest.sh [deleted file]
src/test/CMakeLists.txt