Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37323373
en ru br
Репозитории ALT
S:3.27.6-alt1
5.1: 2.6.4-alt2
4.1: 2.6.3-alt1.M41.1
3.0: 2.0.5-alt1
www.altlinux.org/Changes

Группа :: Development/Tools
Пакет: cmake

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: alt-fallback-modules-dir.patch
Скачать


--- 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/";
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin