mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-27 17:39:51 -05:00
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:
@@ -775,7 +775,7 @@ bool HandleTargetsMode(std::vector<std::string> const& args,
|
|||||||
if (!resourceArgs.GetDestination().empty()) {
|
if (!resourceArgs.GetDestination().empty()) {
|
||||||
resourceGenerator = CreateInstallFilesGenerator(
|
resourceGenerator = CreateInstallFilesGenerator(
|
||||||
helper.Makefile, absFiles, resourceArgs, false);
|
helper.Makefile, absFiles, resourceArgs, false);
|
||||||
} else {
|
} else if (!target.IsAppBundleOnApple()) {
|
||||||
cmSystemTools::Message(
|
cmSystemTools::Message(
|
||||||
cmStrCat("INSTALL TARGETS - target ", target.GetName(),
|
cmStrCat("INSTALL TARGETS - target ", target.GetName(),
|
||||||
" has RESOURCE files but no RESOURCE DESTINATION."),
|
" has RESOURCE files but no RESOURCE DESTINATION."),
|
||||||
|
|||||||
Reference in New Issue
Block a user