Skip to content

Commit

Permalink
[ci] Disable tests if Catch2 does not provide Catch2WithMain
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Sep 23, 2023
1 parent d7927d0 commit c74a0a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@ if(LIBREMIDI_TESTS)
)

FetchContent_MakeAvailable(Catch2)
if(NOT TARGET Catch2::Catch2WithMain)
message(WARNING "libremidi: Catch2::Catch2WithMain target not found")
return()
endif()

message(STATUS "libremidi: compiling tests")
if(LIBREMIDI_CI)
Expand Down

0 comments on commit c74a0a5

Please sign in to comment.