catchorg / Catch2

A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)
https://discord.gg/4CWS9zD
Boost Software License 1.0
18.51k stars 3.04k forks source link

Specify minimum C++ version for amalgamated test build #2843

Closed ChrisThrasher closed 6 months ago

ChrisThrasher commented 6 months ago

Description

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.