Skip to content

Commit 637b34c

Browse files
committed
#2214: Use correct code_coverage variable in CMake
1 parent 3b84d2e commit 637b34c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmake/configure_options.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ define_option(vt_ubsan_enabled "undefined behavior sanitizer" "Build VT with und
149149
define_option(vt_werror_enabled "-Werror" "Build VT with -Werror enabled" OFF empty_feature)
150150
define_option(vt_build_tests "tests" "Build VT tests" ON empty_feature)
151151
define_option(vt_build_tools "tools" "Build VT tools" ON empty_feature)
152-
define_option(VT_build_examples "examples" "Build VT examples" ON empty_feature)
152+
define_option(vt_build_examples "examples" "Build VT examples" ON empty_feature)
153153

154154
list(POP_BACK CMAKE_MESSAGE_INDENT)
155155

src/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ target_include_directories(
259259
$<INSTALL_INTERFACE:${VT_EXTERNAL_DESTINATION}>
260260
)
261261

262-
if(VT_CODE_COVERAGE AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
262+
if(${vt_code_coverage} AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
263263
message(STATUS "VT: enabling code coverage generation")
264264
# Add required flags (GCC & LLVM/Clang)
265265
target_compile_options(${VIRTUAL_TRANSPORT_LIBRARY} PUBLIC

0 commit comments

Comments
 (0)