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

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-05-09 17:36:30 +0200
committerMartin Hořeňovský2021-05-09 18:05:34 +0200
commitd4a3cd99925166d6cbaed8f26fd989083ddae0a8 (patch)
tree3ca3e8301f76fdb381db1e8845273cc30199320a /src
parent342dd3445c745e50c5be7bda485a89bc3298afc5 (diff)
downloadcatch3-d4a3cd99925166d6cbaed8f26fd989083ddae0a8.tar.gz
Make the static library build reproducible with supported compilers
This is based on bed285af07607a9da93892f8b08d36c3fd6af98d from `v2.x` branch, but done properly for the build in v3 branch, effectively porting #2141 to devel.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2f3dd4ab..3dd11578 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -240,6 +240,7 @@ add_library(Catch2 STATIC
${BENCHMARK_HEADERS}
${BENCHMARK_SOURCES}
)
+add_build_reproducibility_settings(Catch2)
add_library(Catch2::Catch2 ALIAS Catch2)
if (ANDROID)
@@ -281,6 +282,7 @@ target_include_directories(Catch2
add_library(Catch2WithMain STATIC
${SOURCES_DIR}/internal/catch_main.cpp
)
+add_build_reproducibility_settings(Catch2WithMain)
add_library(Catch2::Catch2WithMain ALIAS Catch2WithMain)
target_link_libraries(Catch2WithMain PUBLIC Catch2)
set_target_properties(Catch2WithMain