summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackOSXX11Generator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-11-15 15:22:58 (GMT)
committerBrad King <brad.king@kitware.com>2019-11-15 15:38:08 (GMT)
commit7d6ab5dc5bac806a268eac55deaf5bc550aaa6d4 (patch)
treed5d621306ec833f6a5967cc31cebf013e402ee17 /Source/CPack/cmCPackOSXX11Generator.cxx
parentc1d5d5eb11e0260ffadda0851ac844ab46b6b179 (diff)
downloadCMake-7d6ab5dc5bac806a268eac55deaf5bc550aaa6d4.zip
CMake-7d6ab5dc5bac806a268eac55deaf5bc550aaa6d4.tar.gz
CMake-7d6ab5dc5bac806a268eac55deaf5bc550aaa6d4.tar.bz2
CPack: Restore support for custom package configuration templates
Refactoring in commit 98617f1be0 (Refactor: Move CPack internal files to `Internal/CPack/` directory, 2019-07-09, v3.16.0-rc1~449^2) 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
Diffstat (limited to 'Source/CPack/cmCPackOSXX11Generator.cxx')
-rw-r--r--Source/CPack/cmCPackOSXX11Generator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackOSXX11Generator.cxx b/Source/CPack/cmCPackOSXX11Generator.cxx
index cd65694..951c65f 100644
--- a/Source/CPack/cmCPackOSXX11Generator.cxx
+++ b/Source/CPack/cmCPackOSXX11Generator.cxx
@@ -240,7 +240,7 @@ bool cmCPackOSXX11Generator::CopyResourcePlistFile(
const std::string& name, const std::string& dir,
const char* outputFileName /* = 0 */, bool copyOnly /* = false */)
{
- std::string inFName = cmStrCat("Internal/CPack/CPack.", name, ".in");
+ std::string inFName = cmStrCat("CPack.", name, ".in");
std::string inFileName = this->FindTemplate(inFName.c_str());
if (inFileName.empty()) {
cmCPackLogger(cmCPackLog::LOG_ERROR,