X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=a1764f73b1893728321f274f62e8ddd07de3ff27;hb=9432340362a0eb8fe5ed39cdac0a907f0f50a461;hp=3966bc322ce2015d57c1a4770721d806babd9566;hpb=ef2c0f177dd3c6ea174ed210f15567b08939db4a;p=vpp.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3966bc322ce..a1764f73b18 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -156,6 +156,14 @@ if(VPP_ENABLE_TRAJECTORY_TRACE) add_compile_definitions(VLIB_BUFFER_TRACE_TRAJECTORY=1) endif() +############################################################################## +# unittest with clang ode coverage +############################################################################## + +if("${CMAKE_VERSION}" VERSION_GREATER_EQUAL "3.13" AND "${CMAKE_C_COMPILER_ID}" MATCHES "(Apple)?[Cc]lang") + option(VPP_BUILD_TESTS_WITH_COVERAGE "Build unit tests with code coverage" OFF) +endif() + ############################################################################## # install config ##############################################################################