Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/extras
diff options
context:
space:
mode:
authorBob Miller2023-03-11 05:46:00 -0800
committerMartin Hořeňovský2023-03-14 18:31:38 +0100
commit6783411349db5a87718c9b7ba8b02e90e39d783e (patch)
tree85876f3436ce1492254c0ebf8ef163257c626ea3 /extras
parent7b4dd326c0cf85b40ba9268fcda055a9cd8af2ff (diff)
downloadcatch3-6783411349db5a87718c9b7ba8b02e90e39d783e.tar.gz
Fixed extras installation and shard impl location
Diffstat (limited to 'extras')
-rw-r--r--extras/CatchShardTests.cmake10
1 files changed, 9 insertions, 1 deletions
diff --git a/extras/CatchShardTests.cmake b/extras/CatchShardTests.cmake
index 5e043cf0..68228f5a 100644
--- a/extras/CatchShardTests.cmake
+++ b/extras/CatchShardTests.cmake
@@ -46,7 +46,7 @@ function(catch_add_sharded_tests TARGET)
APPEND PROPERTY TEST_INCLUDE_FILES "${ctest_include_file}"
)
- set(shard_impl_script_file "${CMAKE_CURRENT_LIST_DIR}/CatchShardTestsImpl.cmake")
+ set(shard_impl_script_file "${_CATCH_DISCOVER_SHARD_TESTS_IMPL_SCRIPT}")
add_custom_command(
TARGET ${TARGET} POST_BUILD
@@ -64,3 +64,11 @@ function(catch_add_sharded_tests TARGET)
endfunction()
+
+
+###############################################################################
+
+set(_CATCH_DISCOVER_SHARD_TESTS_IMPL_SCRIPT
+ ${CMAKE_CURRENT_LIST_DIR}/CatchShardTestsImpl.cmake
+ CACHE INTERNAL "Catch2 full path to CatchShardTestsImpl.cmake helper file"
+)