Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2019-11-15 20:29:01 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2019-11-15 20:29:01 +0300
commitb6c21fdf2dcf0f7c72e117cfc8396fdbb9d5973c (patch)
tree4fbd54284bf9d1014635988bfd6b50298234719f /CMakeLists.txt
parent1ebceb7e076b3d6d0f51f185f94d65493e26f192 (diff)
Workarounds for VS2019 16.3.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
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