Sfoglia il codice sorgente

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
Mike Achtelik 4 anni fa
parent
commit
169da7cd81
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Source/cmInstallCommand.cxx

+ 1 - 1
Source/cmInstallCommand.cxx

@@ -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."),