Skip to content

Commit

Permalink
include coverage only when COVERAGE is ON
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Jun 25, 2024
1 parent 30ae315 commit 7908a40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ endif(NOT CMAKE_BUILD_TYPE)

include ( GNUInstallDirs )
include ( FindPkgConfig )
include ( CodeCoverage )


# options ########################################################
option(BUILD_SHARED_LIBS "Build a shared library" ON)
Expand All @@ -33,6 +33,7 @@ if(FORTIFY)
endif()

if(COVERAGE)
include ( CodeCoverage )
append_coverage_compiler_flags()
endif()

Expand Down
3 changes: 2 additions & 1 deletion zzip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ include ( GNUInstallDirs )
include ( JoinPaths )
include ( CheckVerboseSymlink )
include ( CheckCCompilerFlag )
include ( CodeCoverage )


# options ###########################################################
option(BUILD_SHARED_LIBS "Build a shared library" ON)
Expand Down Expand Up @@ -140,6 +140,7 @@ if(FORTIFY)
endif()

if(COVERAGE)
include ( CodeCoverage )
append_coverage_compiler_flags()
endif()

Expand Down

0 comments on commit 7908a40

Please sign in to comment.