forked from trilinos/Trilinos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix FindTPL<tplName>.cmake files and TPL dependencies (TriBITSPub/Tri…
…BITS/trilinos#299) With new TriBITS, *all* FindTPL<tplName>.cmake files must produce <tplName>::all_libs targets and a <tplName>Config.cmake file. Also, with the new TriBITS implementation, we took out the sorting of TPLs by the TPL order. Therefore, to restore the correct TPL ordering, we need to tell CMake the ordering between the TPLs. For now, I am just hacking this by setting the var <tplName>_LIB_ENABLED_DEPENDENCIES in until we can come up with offical support in TriBITS for FindTPL<tplName>Dependencies.cmake files. NOTE: You get link errors if you don't set these dependencies. This calls tribits_tpl_find_include_dirs_and_libraries(...) at the end to create the <tplName>::all_libs target and triggers the generation and install of the <tplName>Config.cmake file. For the CUDA-related TPLs, for some reason, calling raw find_library() finds these libs okay but using the find_library() call inside of tribits_tpl_find_include_dirs_and_libraries() does not. I will have to debug that because these FindTPL<tplName>.cmake files should be about two lines long. I tested this on several different Trilinos builds, including a CUDA build on 'vortex'.
- Loading branch information
1 parent
f9d943a
commit 52b8825
Showing
8 changed files
with
29 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters