From cb14ea9e679620b93108773a0d353dbeef85b2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Fri, 13 May 2022 14:03:05 +0300 Subject: [PATCH] mdbx-cmake: explicit error message from probe for no-support of `std::filesystem`. --- cmake/compiler.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/compiler.cmake b/cmake/compiler.cmake index 17c468b7..58639a0e 100644 --- a/cmake/compiler.cmake +++ b/cmake/compiler.cmake @@ -965,6 +965,10 @@ macro(probe_libcxx_filesystem) namespace fs = ::std::filesystem; #elif defined(__cpp_lib_experimental_filesystem) && __cpp_lib_experimental_filesystem >= 201406L namespace fs = ::std::experimental::filesystem; + #elif (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101500) || (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED < 130100) + #error "Select a newer target OSX/iOS to support C++17 std::filesystem" + #else + #error "No support for C++17 std::filesystem" #endif int main(int argc, const char*argv[]) {