]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
[E.A.] Initialize correctly SUBDIRS otherwise for the particuliar
authoradam <adam>
Thu, 20 Nov 2008 15:51:47 +0000 (15:51 +0000)
committeradam <adam>
Thu, 20 Nov 2008 15:51:47 +0000 (15:51 +0000)
case where SUBDIRS is declared in an enclosed if, the cmake compilation
fails ...

salome_adm/cmake_files/am2cmake.py

index 4dbb8f1ff8f5a6dfe5e88359d5481eae3928ea34..ab801331500709961fb72ce05840ed9b0914d6da 100644 (file)
@@ -247,7 +247,13 @@ class CMakeFile(object):
                 # SET(ENABLE_QXGRAPHVIEWER ON)
                 """)
                 pass
+            # --
             pass
+        # --
+        newlines.append("""
+        SET(SUBDIRS)
+        """)
+        # --
         return
     
     def treatLine(self, line, newlines, opened_ifs):
@@ -439,7 +445,7 @@ class CMakeFile(object):
         # --
         # convert the SUBDIRS in cmake grammar
         # --
-        if self.__thedict__.has_key("SUBDIRS"):
+        if 1: # self.__thedict__.has_key("SUBDIRS"):
             newlines.append(r'''
             FOREACH(dir ${SUBDIRS})
             ADD_SUBDIRECTORY(${dir})