Skip to content

Commit

Permalink
Only initialize code coverage when testing is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi Armstrong authored and Levi-Armstrong committed Apr 13, 2021
1 parent 7e63c53 commit e3aef88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion descartes_light/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ endif()
descartes_variables()

if(NOT MSVC)
initialize_code_coverage()
initialize_code_coverage(ENABLE ${DESCARTES_ENABLE_TESTING})
add_code_coverage_all_targets(ENABLE ${DESCARTES_ENABLE_TESTING})
endif()

Expand Down
2 changes: 1 addition & 1 deletion descartes_samplers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ endif()
descartes_variables()

if(NOT MSVC)
initialize_code_coverage()
initialize_code_coverage(ENABLE ${DESCARTES_ENABLE_TESTING})
add_code_coverage_all_targets(ENABLE ${DESCARTES_ENABLE_TESTING})
endif()

Expand Down

0 comments on commit e3aef88

Please sign in to comment.