dbus/cmake/modules
Simon McVittie dcdc638ea4 cmake: Make intrusive (formerly embedded) tests into a separate option
Previously, the CMake build enabled tests by default, and enabled both
modular and intrusive (embedded) tests with a single option. This is
a really bad idea if anyone is using CMake-built binaries in production.

DBUS_BUILD_TESTS now enables only the modular tests, which are safe to
enable in production builds.

A new DBUS_ENABLE_INTRUSIVE_TESTS option enables the intrusive test
instrumentation.

To preserve existing test coverage, explicitly enable the intrusive
tests in most CMake-based Gitlab-CI jobs (Debian native, openSUSE native,
Windows).

In jobs that have a mirrored pair of production/debug builds (openSUSE
and Debian mingw32/mingw64 cmake), instead we leave the production
build as-is and only build full test coverage in the debug build.

Co-authored-by: Philip Withnall <philip@tecnocode.co.uk>
Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit 41c7570e1e)
2024-12-10 15:43:34 +00:00
..
CheckPrototypeExists.cmake * cmake: new directory, contains cmake build support. 2007-03-03 14:32:17 +00:00
CheckStructMember.cmake * cmake: new directory, contains cmake build support. 2007-03-03 14:32:17 +00:00
CPackInstallConfig.cmake Use project relative paths in CMake files 2022-07-25 14:14:57 -05:00
FindDocBookXSL.cmake cmake: Add BSD-style licenses 2022-11-29 13:33:53 +00:00
FindDoxygen.cmake * cmake: added doxygen support 2007-03-14 00:16:05 +00:00
FindGLIB2.cmake Fix SPDX license reference in FindGLIB2 2022-11-29 20:44:50 +00:00
FindLibIconv.cmake * cmake: new directory, contains cmake build support. 2007-03-03 14:32:17 +00:00
MacroGetenvWinPath.cmake Remove obsolete parameter in end... cmake keywords 2019-01-24 09:07:27 +01:00
MacroLibrary.cmake Use lower case cmake keywords 2019-01-23 21:34:24 +01:00
MacroOptionalFindPackage.cmake * cmake: new directory, contains cmake build support. 2007-03-03 14:32:17 +00:00
Macros.cmake cmake: Make intrusive (formerly embedded) tests into a separate option 2024-12-10 15:43:34 +00:00
MacrosMeson.cmake Let cmake retrieve version and variable information from meson build system 2023-08-07 16:10:21 +02:00
ProjectSourceGroup.cmake Remove obsolete parameter in end... cmake keywords 2019-01-23 21:34:24 +01:00
Win32Macros.cmake cmake: Add BSD-style licenses 2022-11-29 13:33:53 +00:00