From a8b76b455ea603af5d070bfd25530a9d6700897c Mon Sep 17 00:00:00 2001 From: Dominik Berner Date: Wed, 3 Jul 2024 20:01:33 +0000 Subject: [PATCH] Include coverage example in root project --- chapter07/CMakeLists.txt | 1 + chapter07/custom_build_type/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chapter07/CMakeLists.txt b/chapter07/CMakeLists.txt index 22c59a9..48060de 100644 --- a/chapter07/CMakeLists.txt +++ b/chapter07/CMakeLists.txt @@ -27,4 +27,5 @@ add_subdirectory(lwyu_example) add_subdirectory(test_discovery_example) add_subdirectory(fixture_example) add_subdirectory(resource_group_example) +add_subdirectory(coverage_example) add_subdirectory(custom_build_type) \ No newline at end of file diff --git a/chapter07/custom_build_type/CMakeLists.txt b/chapter07/custom_build_type/CMakeLists.txt index ff04c68..0ee6231 100644 --- a/chapter07/custom_build_type/CMakeLists.txt +++ b/chapter07/custom_build_type/CMakeLists.txt @@ -32,7 +32,7 @@ else() # if the build type is not set force it to debug if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Debug CACHE STRING "" FORCE) - # If the build type is unknown fail configuration witn an error + # If the build type is unknown fail configuration with an error elseif(NOT CMAKE_BUILD_TYPE IN_LIST allowedBuildTypes) message(FATAL_ERROR "Unknown build type: ${CMAKE_BUILD_TYPE}") endif()