diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-03-17 13:40:25 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-03-17 13:40:25 +0300 |
commit | 154876409ea7a87e2c4af08418954f8d884c67fe (patch) | |
tree | d32f7e752f076f86988e710e25f115082a2079d2 /CMakeLists.txt | |
parent | cbd573161b6703febcdc4f26d701066430317d27 (diff) |
Workaround path_view test failures on libstdc++.
Mandate at least C++ 17 on Mac OS, in order to find <filesystem>.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 325a4c62..2733c194 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,8 +158,8 @@ if(NOT MSVC OR CMAKE_VERSION VERSION_GREATER 3.59) cxx_variable_templates ) endif() -# If on VS2019 16.3 or later, we require C++ 17 -if(MSVC AND MSVC_VERSION VERSION_GREATER_EQUAL 1923) +# If on VS2019 16.3 or later, or on Apple, we require C++ 17 +if((MSVC AND MSVC_VERSION VERSION_GREATER_EQUAL 1923) OR APPLE) all_compile_features(PUBLIC cxx_std_17 ) |