From a127bc5ae3d4de9aaa1a7c7bc8b687d52bdc84af Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 4 Mar 2011 08:41:36 +0000 Subject: [PATCH] Use the -DWITH_SALOMEDS_OBSERVER flag --- salome_adm/cmake_files/am2cmake.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/salome_adm/cmake_files/am2cmake.py b/salome_adm/cmake_files/am2cmake.py index 213c1eefa..f28fe8afc 100644 --- a/salome_adm/cmake_files/am2cmake.py +++ b/salome_adm/cmake_files/am2cmake.py @@ -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: -- 2.39.2