Skip to content

Commit

Permalink
fix: enable profiling for test coverage for MSVC
Browse files Browse the repository at this point in the history
fixes #22
  • Loading branch information
abdes committed Mar 25, 2023
1 parent 0557872 commit 7348d0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/CompileOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ function(asap_set_compile_options)
if(NOT x_WARNING)
target_compile_options(${target} PRIVATE /WX)
endif()
# Enable coverage profiling in Debug builds
# (see https://github.com/abdes/asap/issues/22)
target_link_options(${target} PRIVATE $<$<CONFIG:Debug>:/PROFILE>)
endforeach()
endif()

Expand Down

0 comments on commit 7348d0a

Please sign in to comment.