Help: Modernize PackageConfigHelpers example
The example shown in the module documentation for CMakePackageConfigHelpers was showing its age, by:
- Hardcoding directory prefixes (
etc/
,lib/
, etc.) instead of using GNUInstallDirs - Handwaving
set()
commands (incorrectly!) as:
set(VAR dir/ ... CACHE )
which should, at the very least, be:
set(VAR dir/ CACHE ... )
- Installing CMake configuration files to
lib/Foo/cmake/
, when current practice favors${CMAKE_INSTALL_LIBDIR}/cmake/Foo/
This updated example addresses all of those issues.
Edited by Frank Dana
Merge request reports
Activity
added 1 commit
- bfa61ccf - Help: Modernize PackageConfigHelpers example
assigned to @brad.king
added area:doc label
changed milestone to %3.26.0
added workflow:in-review label
added workflow:nightly-testing label and removed workflow:in-review label
mentioned in commit 62483b9b
removed workflow:nightly-testing label
Please register or sign in to reply