]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
compatibility med2.3.6
authoradam <adam>
Tue, 29 Sep 2009 14:11:49 +0000 (14:11 +0000)
committeradam <adam>
Tue, 29 Sep 2009 14:11:49 +0000 (14:11 +0000)
salome_adm/cmake_files/am2cmake.py

index 5b6d3874a8d62bb036993db570e75cda0b6694b7..a7fb1ef0a1302ff6c21c9c1ea2e1bfde4ae6a282 100644 (file)
@@ -1254,7 +1254,7 @@ class CMakeFile(object):
         ENDIF(WINDOWS)
         ''')
         # --
-        if self.module == "yacs":
+        if self.module in ["medfile", "yacs"]:
             newlines.append(r'''
             IF(WINDOWS)
             SET(var ${var} -DNOGDI)
@@ -1743,6 +1743,14 @@ if __name__ == "__main__":
         # --
         for f in files:
             if f == "Makefile.am":
+                if module == "medfile":
+                    tmp = root[len(the_root)+1:]
+                    from os import sep
+                    l = tmp.split(sep)
+                    if l in [ ["src"], ["tools", "mdump"], ["tools", "medconforme"], ["tools", "medimport"] ]:
+                        f = "Makefile.am.cmake"
+                        pass
+                    pass
                 convertAmFile(the_root, root, dirs, files, f, module)
                 pass
             pass