Explorar el Código

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 hace 4 años
padre
commit
169da7cd81
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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."),