Skip to content

Commit dd49135

Browse files
committed
Fix Catch2 not supporting std::string_view if not compiled in C++17
1 parent a879359 commit dd49135

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ endfunction()
3232

3333
include(FetchContent)
3434

35+
set(CMAKE_CXX_STANDARD 17) # enable C++17 in Catch2...
36+
3537
FetchContent_Declare(catch2
3638
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
3739
GIT_TAG v3.2.0)

0 commit comments

Comments
 (0)