Skip to content

Commit

Permalink
Document <Project>_TRACE_DEPENDENCY_HANDLING_ONLY (TriBITSPub#597)
Browse files Browse the repository at this point in the history
This is a variable that project developers and users should know about.
  • Loading branch information
bartlettroscoe committed Jan 24, 2024
1 parent 1548b6f commit 3aa1ea8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tribits/doc/build_ref/TribitsBuildReferenceBody.rst
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ See the following use cases:
* `Enable all packages (and optionally all tests)`_
* `Disable a package and all its dependencies`_
* `Remove all package enables in the cache`_
* `Speed up debugging dependency handling`_


Determine the list of packages that can be enabled
Expand Down Expand Up @@ -656,6 +657,22 @@ For example, one would want to do this to avoid more expensive compiler and
TPL checks.


Speed up debugging dependency handling
+++++++++++++++++++++++++++++++++++++++

To speed up debugging the package enable/disable dependency handling, set the
cache variable::

-D <Project>_TRACE_DEPENDENCY_HANDLING_ONLY=ON

This will result in only performing the package enable/disable dependency
handling logic and tracing what would be done to configure the compilers and
configure the various enabled packages but not actually do that work. This
can greatly speed up the time to complete the ``cmake`` configure command when
debugging the dependency handling (or when creating tests that check that
behavior).


Selecting compiler and linker options
-------------------------------------

Expand Down

0 comments on commit 3aa1ea8

Please sign in to comment.