From 1f904e065c7a0e29cd35e0ca058a701c162e709e Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 29 Sep 2009 14:11:49 +0000 Subject: [PATCH] compatibility med2.3.6 --- salome_adm/cmake_files/am2cmake.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/salome_adm/cmake_files/am2cmake.py b/salome_adm/cmake_files/am2cmake.py index 5b6d3874a..a7fb1ef0a 100644 --- a/salome_adm/cmake_files/am2cmake.py +++ b/salome_adm/cmake_files/am2cmake.py @@ -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 -- 2.39.2