diff options
| author | Martin Hořeňovský | 2023-12-28 21:20:41 +0100 |
|---|---|---|
| committer | GitHub | 2023-12-28 21:20:41 +0100 |
| commit | 08bdd43fcd8987c922c26a32e690bffc78d3c463 (patch) | |
| tree | 6294953e60aaca8d1a4d80203acf5890931341e1 /src | |
| parent | b52d97855d794175e69abc6f0eceee9ec3c1bd0e (diff) | |
| parent | 1512dac7e4c2fddadcc15f7ab316ce3d5b67e7f3 (diff) | |
| download | catch3-08bdd43fcd8987c922c26a32e690bffc78d3c463.tar.gz | |
Merge pull request #2785 from jpalus/optional-reproducible-build
Make compiler flags for reproducible builds optional
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d01aab2d..eb805ddd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -348,7 +348,9 @@ source_group("generated headers" ) add_library(Catch2 ${ALL_FILES}) -add_build_reproducibility_settings(Catch2) +if (CATCH_ENABLE_REPRODUCIBLE_BUILD) + add_build_reproducibility_settings(Catch2) +endif() add_library(Catch2::Catch2 ALIAS Catch2) if (ANDROID) @@ -401,7 +403,9 @@ target_include_directories(Catch2 add_library(Catch2WithMain ${SOURCES_DIR}/internal/catch_main.cpp ) -add_build_reproducibility_settings(Catch2WithMain) +if (CATCH_ENABLE_REPRODUCIBLE_BUILD) + add_build_reproducibility_settings(Catch2WithMain) +endif() add_library(Catch2::Catch2WithMain ALIAS Catch2WithMain) target_link_libraries(Catch2WithMain PUBLIC Catch2) set_target_properties(Catch2WithMain |