Skip to content

Commit 62dd6d6

Browse files
authored
Add error message for catch2 v2 (#179)
1 parent 44048d4 commit 62dd6d6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ message( STATUS "Building GauXC Tests" )
1717
add_library( gauxc_catch2 INTERFACE )
1818

1919
find_package( Catch2 CONFIG QUIET )
20+
if( Catch2_FOUND AND Catch2_VERSION VERSION_GREATER_EQUAL 3 )
21+
message(FATAL_ERROR "Catch2 v${Catch2_VERSION} found, but tests require Catch2 v2 (catch2/catch.hpp). Please install v2.")
22+
endif()
2023
if( NOT Catch2_FOUND )
2124

2225
FetchContent_Declare(

0 commit comments

Comments
 (0)