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
This commit is contained in:
Mike Achtelik
2021-05-07 21:08:47 +02:00
parent e417d46046
commit 169da7cd81

View File

@@ -775,7 +775,7 @@ bool HandleTargetsMode(std::vector<std::string> 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."),