From a19d5c4362a3bb3d0f15b8494b09e1be0f71cd02 Mon Sep 17 00:00:00 2001 From: "Roscoe A. Bartlett" Date: Tue, 18 Jul 2023 17:30:20 -0600 Subject: [PATCH] Make TriBITS package TribitsExampleProject/Package1 work with 100% raw CMake (#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 `::all_libs` target is already defined. * Build up the list of package libraries target for the `_libs` target from `::all_libs` instead of `_libs`. This seems to pass all of the TriBITS tests. --- .../TribitsExampleProject2/packages/package1/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tribits/examples/TribitsExampleProject2/packages/package1/CMakeLists.txt b/tribits/examples/TribitsExampleProject2/packages/package1/CMakeLists.txt index 426f937f3..4d67670b7 100644 --- a/tribits/examples/TribitsExampleProject2/packages/package1/CMakeLists.txt +++ b/tribits/examples/TribitsExampleProject2/packages/package1/CMakeLists.txt @@ -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