Skip to content

Commit

Permalink
guard against enabling coverage under MSVC for now
Browse files Browse the repository at this point in the history
  • Loading branch information
SadiinsoSnowfall committed Sep 4, 2024
1 parent 3e25eb2 commit cd8a191
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/config/compiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ else()
endif()

if(EVE_ENABLE_COVERAGE)
target_compile_options( eve_test INTERFACE --coverage )
target_link_options( eve_test INTERFACE --coverage )
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
message(FATAL_ERROR "EVE coverage profiling is not supported on MSVC")
else()
target_compile_options( eve_test INTERFACE --coverage )
target_link_options( eve_test INTERFACE --coverage )
endif()
endif()

target_include_directories( eve_test INTERFACE
Expand Down

0 comments on commit cd8a191

Please sign in to comment.