Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Add failing test for INTERFACE library not being in all_libs (Tr…
…iBITSPub#625) This failing test shows that an INTERFACE library was not getting picked up and linked to the <Package>::all_libs target. The reason the existing tests all passed after adding the initial support for HEAERONLY INTERFACE libraries was that I added the interface library 'mixedlang_vector' before the main 'mixedlang' library. So the new 'mixedlang_vector' library getting written to the MixedLangTargets.cmake file and was getting linked to 'mixedlang' and 'mixedlang' was getting liked to MixedLang::all_libs. So, anyone that was linking against MixedLang::all_libs (from internal or IMPORTED target) was getting the include directories being specified in the 'mixedlang_vector' library. But this implementation fails for TriBITS packages that only has INTERFACE libraries. Those never get added to the <Package>::all_libs target or indirectly to targets that do. This is why the STKEmend package failed because it has just one HEADERONLY INTERFACE library. This test ensures that the INTERFACE library does get linked to the <Package>::all_libs target and will fail if it does not. The next commit will add the code in TriBITS to fix this test :-) Signed-off-by: Roscoe A. Bartlett <[email protected]>
- Loading branch information