Skip to content

Commit

Permalink
Fix CMake config
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers committed Oct 15, 2024
1 parent 2d81938 commit 52501a1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,18 @@ add_executable(unit-tests ${TEST_SOURCES})

Include(FetchContent)

#https://github.com/catchorg/Catch2/issues/2583
# SYSTEM property is not propagated so
# set these globally ¯\_(ツ)_/¯
# https://gitlab.kitware.com/cmake/cmake/-/issues/25364
add_compile_options(-Wno-error=conversion)
add_compile_options(-Wno-error=sign-conversion)
add_compile_options(-Wno-error=non-virtual-dtor)

FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.7.1
SYSTEM # https://gitlab.kitware.com/cmake/cmake/-/issues/25364
SYSTEM
)
FetchContent_MakeAvailable(Catch2)

Expand Down

0 comments on commit 52501a1

Please sign in to comment.