From 169da7cd81e0141f8797f809d82bf8d14caf8074 Mon Sep 17 00:00:00 2001 From: Mike Achtelik Date: Fri, 7 May 2021 21:08:47 +0200 Subject: Do not show RESOURCE DESTINATION warning for MACOSX_BUNDLE RESOURCE arguments are ignored on Apple platforms because the associated files are installed into the appropriate locations inside the framework folder. So we do not need to show a warning, that no RESOURCE DESTINATION is defined. Fixes #15676 --- Source/cmInstallCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx index 7788db3..0a8304f 100644 --- a/Source/cmInstallCommand.cxx +++ b/Source/cmInstallCommand.cxx @@ -775,7 +775,7 @@ bool HandleTargetsMode(std::vector const& args, if (!resourceArgs.GetDestination().empty()) { resourceGenerator = CreateInstallFilesGenerator( helper.Makefile, absFiles, resourceArgs, false); - } else { + } else if (!target.IsAppBundleOnApple()) { cmSystemTools::Message( cmStrCat("INSTALL TARGETS - target ", target.GetName(), " has RESOURCE files but no RESOURCE DESTINATION."), -- cgit v0.12