]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Use the -DWITH_SALOMEDS_OBSERVER flag
authoradam <adam>
Fri, 4 Mar 2011 08:41:36 +0000 (08:41 +0000)
committeradam <adam>
Fri, 4 Mar 2011 08:41:36 +0000 (08:41 +0000)
salome_adm/cmake_files/am2cmake.py

index 213c1eefa16ed137518618fb227b6b84b1856089..f28fe8afc32f4c37ee5f46ecf4c1f7f78c440a4c 100644 (file)
@@ -791,6 +791,14 @@ class CMakeFile(object):
                 ENDIF(KERNEL_ROOT_DIR)
                 ''')
                 pass
+            if self.module == "gui":
+                newlines.append(r'''
+                IF(KERNEL_ROOT_DIR)
+                SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DWITH_SALOMEDS_OBSERVER)
+                SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DWITH_SALOMEDS_OBSERVER)
+                ENDIF(KERNEL_ROOT_DIR)
+                ''')
+                pass
             if self.module == "hxx2salome":
                 key = "_SRC"
                 if self.the_root[-len(key):] != key: