summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/add_custom_target
diff options
context:
space:
mode:
authorFeRD (Frank Dana) <ferdnyc@gmail.com>2023-01-23 21:09:54 (GMT)
committerFeRD (Frank Dana) <ferdnyc@gmail.com>2023-01-23 23:02:31 (GMT)
commitbfa61ccf64db099f182da72854835a3a6263b981 (patch)
tree196f020e33ce78b480cc91c5cf1b4dc37b5701da /Tests/RunCMake/add_custom_target
parentf9f34eb11143e5c5c1daee4aa2867139cf930aa4 (diff)
downloadCMake-bfa61ccf64db099f182da72854835a3a6263b981.zip
CMake-bfa61ccf64db099f182da72854835a3a6263b981.tar.gz
CMake-bfa61ccf64db099f182da72854835a3a6263b981.tar.bz2
Help: Modernize PackageConfigHelpers example
The example shown in the module documentation for CMakePackageConfigHelpers was showing its age, by: 1. Hardcoding directory prefixes (`etc/`, `lib/`, etc.) instead of using GNUInstallDirs 2. Handwaving `set()` commands (incorrectly!) as: `set(VAR dir/ ... CACHE )` which should, at the very least, be: `set(VAR dir/ CACHE ... )` 3. 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.
Diffstat (limited to 'Tests/RunCMake/add_custom_target')
0 files changed, 0 insertions, 0 deletions