Skip to content

Commit

Permalink
fix(cmake): catch2 dependency conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Dax89 committed Dec 22, 2023
1 parent 28877f6 commit d058a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
include(cmake/CPM.cmake)

function(setup_dependencies)
if(BUILD_TESTING)
CPMAddPackage("gh:catchorg/Catch2@3.4.0")
if(PROJECT_IS_TOP_LEVEL AND BUILD_TESTING)
CPMAddPackage("gh:catchorg/Catch2@3.5.0")
endif()
endfunction()

0 comments on commit d058a86

Please sign in to comment.