From 2a94ee7e1ebf92aa5be676c490aad21c11dd7d76 Mon Sep 17 00:00:00 2001 From: Jacob Domagala Date: Mon, 20 Nov 2023 14:06:11 +0100 Subject: [PATCH] #2214: Use correct code_coverage variable in CMake --- cmake/configure_options.cmake | 2 +- src/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/configure_options.cmake b/cmake/configure_options.cmake index 8c8057b49e..5340d5aacf 100644 --- a/cmake/configure_options.cmake +++ b/cmake/configure_options.cmake @@ -149,7 +149,7 @@ define_option(vt_ubsan_enabled "undefined behavior sanitizer" "Build VT with und define_option(vt_werror_enabled "-Werror" "Build VT with -Werror enabled" OFF empty_feature) define_option(vt_build_tests "tests" "Build VT tests" ON empty_feature) define_option(vt_build_tools "tools" "Build VT tools" ON empty_feature) -define_option(VT_build_examples "examples" "Build VT examples" ON empty_feature) +define_option(vt_build_examples "examples" "Build VT examples" ON empty_feature) list(POP_BACK CMAKE_MESSAGE_INDENT) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 233cf54d7e..39c3b57a64 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -259,7 +259,7 @@ target_include_directories( $ ) -if(VT_CODE_COVERAGE AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") +if(${vt_code_coverage} AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") message(STATUS "VT: enabling code coverage generation") # Add required flags (GCC & LLVM/Clang) target_compile_options(${VIRTUAL_TRANSPORT_LIBRARY} PUBLIC