mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 19:33:29 +01:00
Allow to specify CATCH_CONFIG_DEFAULT_REPORTER for static library with main() (#2346)
This commit is contained in:
parent
216713a406
commit
958944d27a
@ -116,6 +116,10 @@ if (CATCH_BUILD_STATIC_LIBRARY)
|
||||
("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND NOT ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 10))
|
||||
target_compile_options(Catch2WithMain PRIVATE "-ffile-prefix-map=${CMAKE_SOURCE_DIR}=.")
|
||||
endif()
|
||||
|
||||
if (CATCH_CONFIG_DEFAULT_REPORTER)
|
||||
target_compile_definitions(Catch2WithMain PRIVATE CATCH_CONFIG_DEFAULT_REPORTER=${CATCH_CONFIG_DEFAULT_REPORTER})
|
||||
endif()
|
||||
endif(CATCH_BUILD_STATIC_LIBRARY)
|
||||
|
||||
# Only perform the installation steps when Catch is not being used as
|
||||
|
Loading…
Reference in New Issue
Block a user