Add CXX_STANDARD_REQUIRED to CMake quickstart

This commit is contained in:
Shlomi Nissan
2023-05-21 16:40:06 -07:00
parent cb455a71fb
commit aa99ce5a0d
2 changed files with 5 additions and 4 deletions

View File

@@ -54,6 +54,7 @@ project(my_project)
# GoogleTest requires at least C++14
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(FetchContent)
FetchContent_Declare(