From 155d196bfab4416c5c7431b96644df7311576f55 Mon Sep 17 00:00:00 2001 From: Viktor Kirilov Date: Mon, 18 Mar 2019 17:58:35 +0200 Subject: [PATCH] Update CMakeLists.txt --- test/CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1ac271c1..b2f59d5f 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -65,11 +65,7 @@ set_target_properties(doctest_main PROPERTIES COMPILE_OPTIONS "$<$:/EHsc;$<$:/Od>>" ) -if (${CMAKE_VERSION} VERSION_LESS "3.8.0") - target_compile_features(catch_main PUBLIC cxx_range_for) -else() - target_compile_features(catch_main PUBLIC cxx_std_11) -endif() +target_compile_features(doctest_main PUBLIC cxx_std_11) target_include_directories(doctest_main PRIVATE "thirdparty/doctest") # https://stackoverflow.com/questions/2368811/how-to-set-warning-level-in-cmake