mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-29 09:48:49 +08:00
mdbx-cmake: незначительное уточнение пробника для std::filesystem
.
This commit is contained in:
parent
c019631a8c
commit
4fd21d2f7b
@ -1039,9 +1039,15 @@ macro(probe_libcxx_filesystem)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int argc, const char*argv[]) {
|
int main(int argc, const char*argv[]) {
|
||||||
fs::path probe(argv[0]);
|
std::string str(argv[0]);
|
||||||
|
fs::path probe(str);
|
||||||
if (argc != 1) throw fs::filesystem_error(std::string("fake"), std::error_code());
|
if (argc != 1) throw fs::filesystem_error(std::string("fake"), std::error_code());
|
||||||
return fs::is_directory(probe.relative_path());
|
int r = fs::is_directory(probe.relative_path());
|
||||||
|
for (auto const& i : fs::directory_iterator(probe)) {
|
||||||
|
++r;
|
||||||
|
(void)i;
|
||||||
|
}
|
||||||
|
return r;
|
||||||
}
|
}
|
||||||
]])
|
]])
|
||||||
set(LIBCXX_FILESYSTEM "")
|
set(LIBCXX_FILESYSTEM "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user