Skip to content

CPack: Restore support for custom package configuration templates

Brad King requested to merge brad.king/cmake:cpack-custom-templates into master

Refactoring in !3530 (merged) accidentally changed the public-facing names of the templates. The name passed to FindTemplate is searched in CMAKE_MODULE_PATH and should not change. Remove the Internal/CPack/ prefix on the names added by that commit. Teach FindTemplate to use our builtin default directly when the public-facing name is not found in CMAKE_MODULE_PATH.

Fixes: #19979 (closed)
Backport: release

Edited by Brad King

Merge request reports