From: crouzet Date: Mon, 13 Feb 2012 13:45:43 +0000 (+0000) Subject: bug correction : generated modules with gui require boost, they don't compile if... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2f1a53380f16c846c2ce42150cc86ae087eda76f;p=tools%2Fyacsgen.git bug correction : generated modules with gui require boost, they don't compile if boost is not native --- diff --git a/module_generator/gener.py b/module_generator/gener.py index d1c2241..ff1c535 100644 --- a/module_generator/gener.py +++ b/module_generator/gener.py @@ -399,6 +399,8 @@ AM_CFLAGS=$(SALOME_INCLUDES) -fexceptions catalogfile = "%sCatalog.xml" % module.name need_boost=0 + if module.gui: + need_boost=1 for compo in module.components: if hasattr(compo,"calciumextendedinterface") and compo.calciumextendedinterface: need_boost=1 diff --git a/module_generator/gui_tmpl.py b/module_generator/gui_tmpl.py index cd3c552..b8c3453 100644 --- a/module_generator/gui_tmpl.py +++ b/module_generator/gui_tmpl.py @@ -54,7 +54,7 @@ BUILT_SOURCES=${uisources} lib_LTLIBRARIES= lib${module}.la lib${module}_la_SOURCES = ${sources} -lib${module}_la_CPPFLAGS = $$(SALOME_INCLUDES) $$(GUI_CXXFLAGS) $$(QT_INCLUDES) -I$$(top_builddir)/idl +lib${module}_la_CPPFLAGS = $$(SALOME_INCLUDES) $$(GUI_CXXFLAGS) $$(BOOST_CPPFLAGS) $$(QT_INCLUDES) -I$$(top_builddir)/idl lib${module}_la_LIBADD = -L$$(top_builddir)/idl -lSalomeIDL${module} salomeres_DATA =SalomeApp.xml ${other_sources}