Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37553909
en ru br
ALT Linux repositórios
S:3.27.6-alt1
5.0: 2.6.3-alt2
4.1: 2.6.3-alt1.M41.1
3.0: 2.0.5-alt1

Group :: Development/Tools
RPM: cmake

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: alt-fallback-modules-dir.patch
Download


--- a/Source/cmMakefile.cxx~	2017-09-07 19:14:26.000000000 +0300
+++ b/Source/cmMakefile.cxx	2017-10-23 12:55:36.616269687 +0300
@@ -3359,6 +3359,25 @@ std::string cmMakefile::GetModulesFile(c
     }
   }
 
+  {
+    const char* cmakeModulePathFallback = "/usr/share/CMake/Modules";
+    std::vector<std::string> modulePath;
+    cmExpandList(cmakeModulePathFallback, modulePath);
+
+    // Look through the possible module directories.
+    for (std::vector<std::string>::iterator i = modulePath.begin();
+         i != modulePath.end(); ++i) {
+      std::string itempl = *i;
+      cmSystemTools::ConvertToUnixSlashes(itempl);
+      itempl += "/";
+      itempl += filename;
+      if (cmSystemTools::FileExists(itempl.c_str())) {
+        moduleInCMakeModulePath = itempl;
+        break;
+      }
+    }
+  }
+
   // Always search in the standard modules location.
   moduleInCMakeRoot = cmSystemTools::GetCMakeRoot();
   moduleInCMakeRoot += "/Modules/";
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009