Skip to content

Commit

Permalink
Make TriBITS package TribitsExampleProject/Package1 work with 100% ra…
Browse files Browse the repository at this point in the history
…w CMake (TriBITSPub#582)

This raw CMake build mode for Package1 uses no TriBITS macros, functions, or
other functionality at all.

The only change to TriBITS-proper were:

* Skip check for not calling tribits_package_postprocess() if the
  `<Package>::all_libs` target is already defined.

* Build up the list of package libraries target for the `<Project>_libs`
  target from `<Package>::all_libs` instead of `<Package>_libs`.

This seems to pass all of the TriBITS tests.
  • Loading branch information
bartlettroscoe committed Jul 26, 2023
1 parent 21f679b commit a19d5c4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ else()
target_link_libraries(Package1_all_libs INTERFACE Package1_package1)
install(TARGETS Package1_all_libs
EXPORT ${PROJECT_NAME}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
COMPONENT ${PROJECT_NAME} )
COMPONENT ${PROJECT_NAME}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
add_library(Package1::all_libs ALIAS Package1_all_libs)

# Generate Package1Config.cmake file for the build tree
Expand Down

0 comments on commit a19d5c4

Please sign in to comment.