-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Test] Fix setting CATCH_CONFIG_CONSOLE_WIDTH
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,16 +162,16 @@ if( WIN32 ) | |
endif() | ||
|
||
# Catch2 | ||
CPMAddPackage( "gh:catchorg/[email protected]" ) | ||
CPMAddPackage( NAME Catch2 | ||
VERSION 3.4.0 | ||
OPTIONS "CATCH_CONFIG_CONSOLE_WIDTH 512" "CATCH_CONFIG_ENABLE_ALL_STRINGMAKERS ON" | ||
GITHUB_REPOSITORY "catchorg/Catch2" ) | ||
list( APPEND CMAKE_MODULE_PATH "${Catch2_SOURCE_DIR}/extras" ) | ||
set( CATCH_CONFIG_ENABLE_ALL_STRINGMAKERS ON ) | ||
set( CATCH_CONFIG_CONSOLE_WIDTH "512" CACHE STRING "" FORCE ) | ||
|
||
include( CTest ) | ||
include( Catch ) | ||
target_link_libraries( ${TESTS_TARGET} PRIVATE Catch2::Catch2 ) | ||
target_link_libraries( ${TESTS_TARGET_PUBLIC} PRIVATE Catch2::Catch2 ) | ||
target_compile_definitions( Catch2 PUBLIC CATCH_CONFIG_CONSOLE_WIDTH=512 ) | ||
target_compile_definitions( ${TESTS_TARGET} PRIVATE CATCH_CONFIG_CONSOLE_WIDTH=512 ) | ||
target_compile_definitions( ${TESTS_TARGET_PUBLIC} PRIVATE CATCH_CONFIG_CONSOLE_WIDTH=512 ) | ||
catch_discover_tests( ${TESTS_TARGET} ) |