Feature #12236
Produce for-build -cmake.config files in addition to at-install for all cetbuildtools products.
Description
Based on information in the CMake
documentation for configure_package_config_file (see the description of the INSTALL_PREFIX
option), it would appear that it is feasible (and reasonable) to create a second -config.cmake
file (e.g. at include(CetCMakeEnv)
time) configured to do the right thing at build-time.
In combination with teaching MRB to construct its top-level CMakeLists.txt
file to add_subdirectory
in the right order, this should drastically simplify the special code required to configure a package for inclusion in a multi-package build, and render it consistent with the code required to do the same thing both for a single-package, non-MRB build and utilizing a pre-built external product (find_ups_package
in all cases). It should also remove the need for explicit manipulation of the CMAKE_MODULE_PATH in all package-level CMakeLists.txt
files.
Related issues
History
#1 Updated by Kyle Knoepfel almost 5 years ago
- Status changed from New to Feedback
#2 Updated by Christopher Green almost 5 years ago
I now believe I can have an implementation of this (or understand why it is not possible) within a day. A production implementation would have to wait on solving the MRB ordering problem.
#3 Updated by Christopher Green almost 5 years ago
- Related to Feature #11641: Use self-locating paths to cetbuildtools programs added
#4 Updated by Christopher Green almost 5 years ago
- Blocked by Feature #7314: Automatically generate, use dependency_list added
#5 Updated by Christopher Green almost 5 years ago
- Status changed from Feedback to Resolved
- Assignee set to Christopher Green
- % Done changed from 0 to 100
- SSI Package cetbuildtools added
- SSI Package deleted (
-)
Implemented on branch cetbuildtools:for_v6. Note blocking issue #7314, currently preventing release.
#6 Updated by Lynn Garren almost 5 years ago
- Blocked by Feature #12387: build order added
#7 Updated by Lynn Garren almost 5 years ago
- Blocked by deleted (Feature #7314: Automatically generate, use dependency_list)