]> source.dussan.org Git - rspamd.git/commit
Add SYSTEM_DOCTEST cmake option 3875/head
authorPetr Vaněk <arkamar@atlas.cz>
Wed, 1 Sep 2021 11:30:56 +0000 (13:30 +0200)
committerPetr Vaněk <arkamar@atlas.cz>
Thu, 2 Sep 2021 08:07:37 +0000 (10:07 +0200)
commitd37a3764e9889e6de0a7341ba3195ee8a314de23
treeb7cf8406d6a4e38de2caee125048652deeff8906
parent760522c4da986f19e864da6123ba938f5e7d25d2
Add SYSTEM_DOCTEST cmake option

This gives packagers option to use system version of doctest rather than
bundled one. It is disabled by default. Additionally, there is no need
to link rspamd-test-cxx with doctest as it is is single header library.

Main reason for this change is that currently bundled version of
doctest-2.4.5 can't compile with glibc-2.34 [1]. However, this issue was
already fixed in upstream doctest-2.4.6 [2] in commit [3]. With this,
packagers can just bump doctest to fixed version.

[1] https://github.com/onqtam/doctest/issues/473
[2] https://github.com/onqtam/doctest/blob/master/CHANGELOG.md#246-2021-03-22
[3] https://github.com/onqtam/doctest/commit/099d5414e97244ec44cf46b14cd176b3a3dc52e3
CMakeLists.txt
test/CMakeLists.txt