commit: 34caa52664114e905b94bbcbc60bf8019ebc65b5 Author: Florian Schmaus <flow <AT> gentoo <DOT> org> AuthorDate: Sun Dec 8 09:33:55 2024 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Mon Dec 9 18:28:31 2024 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=34caa526
general-concepts/use-flags: hint towards CMAKE_DISABLE_FIND_PACKAGE_<pkg> Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> general-concepts/use-flags/text.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/general-concepts/use-flags/text.xml b/general-concepts/use-flags/text.xml index 72cc577..0cd267b 100644 --- a/general-concepts/use-flags/text.xml +++ b/general-concepts/use-flags/text.xml @@ -32,9 +32,10 @@ Automagic dependencies are preferably fixed by preparing a build system patch adding appropriate options to control the dependency in question, and submitting this patch upstream for the benefit of all users. To avoid carrying additional patches downstream, automagic dependencies can usually be worked around using -special build system options (e.g. cache variables in autotools) or through -depending on the relevant packages unconditionally (i.e. forcing the check -to always succeed). +special build system options (e.g. cache variables in autotools or +<c><uri link="https://cmake.org/cmake/help/latest/variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName.html"> +CMAKE_DISABLE_FIND_PACKAGE_FOO=$(usex !foo)</uri></c>) or through depending on +the relevant packages unconditionally (i.e. forcing the check to always succeed). </p> <note>