diff options
Diffstat (limited to 'src/vat2/CMakeLists.txt')
-rw-r--r-- | src/vat2/CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vat2/CMakeLists.txt b/src/vat2/CMakeLists.txt index c44d2452ea1..31d429346ac 100644 --- a/src/vat2/CMakeLists.txt +++ b/src/vat2/CMakeLists.txt @@ -52,8 +52,7 @@ add_vpp_executable(test_vat2 ENABLE_EXPORTS NO_INSTALL rt m dl crypto ) #target_link_options(test_vat2 PUBLIC "LINKER:-fsanitize=address") - -if("${CMAKE_VERSION}" VERSION_GREATER_EQUAL "3.13" AND "${CMAKE_C_COMPILER_ID}" MATCHES "(Apple)?[Cc]lang") +if(VPP_BUILD_TESTS_WITH_COVERAGE) set(TARGET_NAME test_vat2) message("Building with llvm Code Coverage Tools ${TARGET_NAME}") |