Skip to content

Commit

Permalink
Enhance find_package(Trilinos) test
Browse files Browse the repository at this point in the history
Add a dummy executable that depends on all of the built Trilinos
libraries to attempt to exercise some more failure cases.

Specifically, this is to try and make visible the failure where imported
toolchain libraries (e.g. libm) will not work in downstream builds due
to incomplete install logic.

User Support Ticket(s) or Story Referenced: TRILFRAME-601 trilinos#10081
  • Loading branch information
sebrowne committed Oct 10, 2023
1 parent 2d431e3 commit 7fdb78c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ find_package(Trilinos REQUIRED)
message("Trilinos_FOUND = '${Trilinos_FOUND}'")
message("Trilinos_SELECTED_PACAKGES_LIST = '${Trilinos_SELECTED_PACAKGES_LIST}'")
message("Trilinos_LIBRARIES = '${Trilinos_LIBRARIES}'")

add_executable(hello hello.c)
target_link_libraries(hello PUBLIC ${Trilinos_LIBRARIES})
5 changes: 5 additions & 0 deletions packages/TrilinosInstallTests/find_package_Trilinos/hello.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include <stdio.h>

int main(int argc, char** argv) {
printf("Hello, world!");
}

0 comments on commit 7fdb78c

Please sign in to comment.