diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2019-11-15 20:29:01 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2019-11-15 20:29:01 +0300 |
commit | b6c21fdf2dcf0f7c72e117cfc8396fdbb9d5973c (patch) | |
tree | 4fbd54284bf9d1014635988bfd6b50298234719f /CMakeLists.txt | |
parent | 1ebceb7e076b3d6d0f51f185f94d65493e26f192 (diff) |
Workarounds for VS2019 16.3.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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 |