Skip to content

Commit

Permalink
#2214: Use correct code_coverage variable in CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Nov 20, 2023
1 parent 495c375 commit 2a94ee7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/configure_options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ target_include_directories(
$<INSTALL_INTERFACE:${VT_EXTERNAL_DESTINATION}>
)

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
Expand Down

0 comments on commit 2a94ee7

Please sign in to comment.