summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-01-31 14:53:58 (GMT)
committerBrad King <brad.king@kitware.com>2020-01-31 15:04:31 (GMT)
commit7bf187499f9678c3493d5e6960c6ccabb6604c8d (patch)
treee8a74132e2b74b18810f6cfaf27d32b1a082989f /Source
parent371e9e48a4186f41354938b0b805a351857c78a0 (diff)
downloadCMake-7bf187499f9678c3493d5e6960c6ccabb6604c8d.zip
CMake-7bf187499f9678c3493d5e6960c6ccabb6604c8d.tar.gz
CMake-7bf187499f9678c3493d5e6960c6ccabb6604c8d.tar.bz2
CPack: Deprecate PackageMaker generator
Xcode no longer distributes the PackageMaker tools. Add a deprecation warning when the generator is used. Issue: #20235
Diffstat (limited to 'Source')
-rw-r--r--Source/CPack/cmCPackPackageMakerGenerator.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackPackageMakerGenerator.cxx b/Source/CPack/cmCPackPackageMakerGenerator.cxx
index 12ea97b..f51ea42 100644
--- a/Source/CPack/cmCPackPackageMakerGenerator.cxx
+++ b/Source/CPack/cmCPackPackageMakerGenerator.cxx
@@ -321,6 +321,9 @@ int cmCPackPackageMakerGenerator::PackageFiles()
int cmCPackPackageMakerGenerator::InitializeInternal()
{
+ cmCPackLogger(cmCPackLog::LOG_WARNING,
+ "The PackageMaker generator is deprecated "
+ "and will be removed in a future version.\n");
this->SetOptionIfNotSet("CPACK_PACKAGING_INSTALL_PREFIX", "/usr");
// Starting with Xcode 4.3, PackageMaker is a separate app, and you