mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 05:16:10 +01:00
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.
This commit is contained in:
parent
a2a3c55058
commit
bfe3ff8f19
@ -556,6 +556,7 @@ add_executable(AmalgamatedTestCompilation
|
|||||||
${CATCH_DIR}/extras/catch_amalgamated.cpp
|
${CATCH_DIR}/extras/catch_amalgamated.cpp
|
||||||
)
|
)
|
||||||
target_include_directories(AmalgamatedTestCompilation PRIVATE ${CATCH_DIR}/extras)
|
target_include_directories(AmalgamatedTestCompilation PRIVATE ${CATCH_DIR}/extras)
|
||||||
|
target_compile_features(AmalgamatedTestCompilation PRIVATE cxx_std_14)
|
||||||
|
|
||||||
add_test(NAME AmalgamatedFileTest COMMAND AmalgamatedTestCompilation)
|
add_test(NAME AmalgamatedFileTest COMMAND AmalgamatedTestCompilation)
|
||||||
set_tests_properties(
|
set_tests_properties(
|
||||||
|
Loading…
Reference in New Issue
Block a user