From 24b2809011b3298e781e46af54491d85598f293d Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)" Date: Wed, 15 Apr 2020 12:10:07 +0100 Subject: Filled out the last of the i/o multiplexer interface and lifecycle. --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index c3010e7a..3866d3a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -194,6 +194,14 @@ int main() { } " CXX_HAS_CXX17_FILESYSTEM) if(NOT CXX_HAS_CXX17_FILESYSTEM) + check_cxx_source_linkage(" +#include +int main() { + try { return std::experimental::filesystem::path(\"hi\").empty(); } catch(std::experimental::filesystem::filesystem_error) { return 1; } +} +" CXX_HAS_CXX_EXPERIMENTAL_FILESYSTEM) +endif() +if(NOT CXX_HAS_CXX17_FILESYSTEM AND NOT CXX_HAS_CXX_EXPERIMENTAL_FILESYSTEM) indented_message(STATUS "NOTE: Standard not found in the current compiler configuration (try forcing C++ 17 or later?), attempting to figure out what linker flags to use for this STL ...") # Are we on libstdc++ or libc++? check_cxx_source_compiles(" -- cgit v1.2.3