From b6c21fdf2dcf0f7c72e117cfc8396fdbb9d5973c Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)" Date: Fri, 15 Nov 2019 17:29:01 +0000 Subject: Workarounds for VS2019 16.3. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 112bd8a2..cfb87f0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -153,6 +153,12 @@ 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) + all_compile_features(PUBLIC + cxx_std_17 + ) +endif() # Set the library dependencies this library has all_link_libraries(PUBLIC quickcpplib::hl outcome::hl Threads::Threads) # Set the system dependencies this library has -- cgit v1.2.3