]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: do not always require extra link flags for std::filesystem
authorKefu Chai <kchai@redhat.com>
Fri, 27 Nov 2020 15:50:57 +0000 (23:50 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 2 Dec 2020 11:42:34 +0000 (19:42 +0800)
commit6cf7ebd0cadd1ab0f41f4c038a4508fbacda251c
tree525756c704e46f423da51f56d0a06de559b5c7d9
parentf0cb9364d62ac28c92397cf6eb8050a4467d1fc2
cmake: do not always require extra link flags for std::filesystem

since GCC-9

> Using the types and functions in <filesystem> does not require linking
> with -lstdc++fs now.

see https://gcc.gnu.org/gcc-9/changes.html#libstdcxx

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/FindStdFilesystem.cmake