Determining correct order of Trilinos libraries in link line #13054
-
@trilinos/framework @bartlettroscoe @abodado Is there a mechanism for an application building against an installed Trilinos build to identify the proper link ordering for Trilinos libraries? If it matters, the customer is doing a static build. I don't know if the app itself is using cmake. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Currently the only supported approach is to have downstream apps use CMake and pull in Trilinos pacakges with |
Beta Was this translation helpful? Give feedback.
Currently the only supported approach is to have downstream apps use CMake and pull in Trilinos pacakges with
find_package(<PackageName>)
and then link totarget_link_libraries(<yourLibOrExec> PRIVATE <PackageName>::all_libs ...)
. This was one of the consequences of moving to modern CMake. See the discussion of this in TriBITSPub/TriBITS#299 starting around TriBITSPub/TriBITS#299 (comment) (and see Kitware's view on this in TriBITSPub/TriBITS#299 (comment)).