Skip to content

Commit

Permalink
Update howto with alternative lib names with tribits_tpl_find_include…
Browse files Browse the repository at this point in the history
…_dirs_and_libraries()

Signed-off-by: Roscoe A. Bartlett <[email protected]>
  • Loading branch information
bartlettroscoe committed Nov 1, 2024
1 parent 410ffb3 commit ca6ea52
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tribits/doc/guides/TribitsGuidesBody.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5942,6 +5942,22 @@ header files and libraries that must be found. A simple
MUST_FIND_ALL_LIBS
)

Note that a set of alternate names for each library can be specified using
quotes around the set of alternative library names using the syntax::

tribits_tpl_find_include_dirs_and_libraries( <tplName>
...
REQUIRED_LIBS_NAMES "<libname0> <libname0alt0> <libname0alt1> ..." ...
...
)

This is most commonly used for simple single-library TPLs like BLAS that has
different potential implementations like::

tribits_tpl_find_include_dirs_and_libraries( BLAS
REQUIRED_LIBS_NAMES "blas openblas atlas"
...
)

Requirements for FindTPL<tplName>.cmake modules
+++++++++++++++++++++++++++++++++++++++++++++++
Expand Down

0 comments on commit ca6ea52

Please sign in to comment.