From bfe3ff8f19d3436381b4e3a18c13734d21a8b089 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Wed, 13 Mar 2024 11:16:07 -0600 Subject: [PATCH] Specify minimum C++ version for amalgamated test build This target previously did not specify its minimum C++ standard. AppleClang was emitting warnings about the use of C++11 features which is fixed by telling CMake that this target requires C++14. Because this target does not link to the existing CMake targets it never inherited that C++ standard requirement. --- tests/ExtraTests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ExtraTests/CMakeLists.txt b/tests/ExtraTests/CMakeLists.txt index 0c5600ab..8eaf3a56 100644 --- a/tests/ExtraTests/CMakeLists.txt +++ b/tests/ExtraTests/CMakeLists.txt @@ -556,6 +556,7 @@ add_executable(AmalgamatedTestCompilation ${CATCH_DIR}/extras/catch_amalgamated.cpp ) target_include_directories(AmalgamatedTestCompilation PRIVATE ${CATCH_DIR}/extras) +target_compile_features(AmalgamatedTestCompilation PRIVATE cxx_std_14) add_test(NAME AmalgamatedFileTest COMMAND AmalgamatedTestCompilation) set_tests_properties(