diff options
| author | Martin Hořeňovský | 2026-04-02 22:58:33 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2026-04-03 10:19:05 +0200 |
| commit | 9f1b48a94fdc7a54aa87fc9bd26d6b1b3f560d4c (patch) | |
| tree | 1b855cdbffa4268957d8e8d7dffb5ff9df77e455 /tests | |
| parent | f4e83daa184595cee80a8d37f145cb5d6b9b21ba (diff) | |
| download | catch3-9f1b48a94fdc7a54aa87fc9bd26d6b1b3f560d4c.tar.gz | |
Inline SKIP/FAIL in RunContext to fix build failure with prefixed macros
Closes #3087
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ExtraTests/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ExtraTests/CMakeLists.txt b/tests/ExtraTests/CMakeLists.txt index def88be5..886c059e 100644 --- a/tests/ExtraTests/CMakeLists.txt +++ b/tests/ExtraTests/CMakeLists.txt @@ -56,9 +56,9 @@ set(TESTS_DIR ${CATCH_DIR}/tests/ExtraTests) add_executable(PrefixedMacros ${TESTS_DIR}/X01-PrefixedMacros.cpp) target_compile_definitions(PrefixedMacros PRIVATE CATCH_CONFIG_PREFIX_ALL CATCH_CONFIG_RUNTIME_STATIC_REQUIRE) -# Macro configuration does not touch the compiled parts, so we can link -# it against the main library -target_link_libraries(PrefixedMacros Catch2WithMain) +# We want to verify that the main library can also be built with prefixed +# macros, regression test for #3087. +target_link_libraries(PrefixedMacros Catch2_buildall_interface) add_test(NAME CATCH_CONFIG_PREFIX_ALL COMMAND PrefixedMacros -s) set_tests_properties(CATCH_CONFIG_PREFIX_ALL |