ENDIF(${F2C_FOUND})
ENDIF(WIN32)
-#On Linux enable MG_ADAPT
-IF(NOT WIN32)
- ADD_DEFINITIONS(-DMGADAPT_ENABLE)
-ENDIF(NOT WIN32)
+
+SET (SALOME_SMESH_DISABLE_MG_ADAPT OFF)
+IF(WIN32)
+ SET (SALOME_SMESH_DISABLE_MG_ADAPT ON)
+ENDIF()
+
+#On Windows disable MG_ADAPT
+IF(SALOME_SMESH_DISABLE_MG_ADAPT)
+ ADD_DEFINITIONS(-DDISABLE_MG_ADAPT)
+ENDIF()
IF(SALOME_SMESH_ENABLE_MEFISTO)
SET(MEFISTO2D_NAME "MEFISTO_2D")
SET(SALOME_SMESH_USE_CGNS @SALOME_SMESH_USE_CGNS@)
SET(SALOME_SMESH_USE_TBB @SALOME_SMESH_USE_TBB@)
SET(SALOME_SMESH_ENABLE_MEFISTO @SALOME_SMESH_ENABLE_MEFISTO@)
+SET(SALOME_SMESH_DISABLE_MG_ADAPT @SALOME_SMESH_DISABLE_MG_ADAPT@)
IF(NOT WIN32)
LIST(APPEND SMESH_DEFINITIONS "-DENABLE_MEFISTO")
ENDIF(NOT WIN32)
break;
}
// Adaptation - begin
-#if defined(MGADAPT_ENABLE)
+#ifndef DISABLE_MG_ADAPT
case SMESHOp::OpMGAdapt:
{
if ( isStudyLocked() )
createSMESHAction( SMESHOp::OpDisableAutoColor, "DISABLE_AUTO_COLOR" );
// Adaptation - begin
-#if defined(MGADAPT_ENABLE)
+#ifndef DISABLE_MG_ADAPT
createSMESHAction( SMESHOp::OpMGAdapt, "MG_ADAPT", "ICON_MG_ADAPT" );
#endif
// Adaptation - end
createMenu( SMESHOp::OpPatternMapping, modifyId, -1 );
// Adaptation - begin
-#if defined(MGADAPT_ENABLE)
+#ifndef DISABLE_MG_ADAPT
createMenu( SMESHOp::OpMGAdapt, adaptId, -1 );
#endif
// Adaptation - end
createTool( SMESHOp::OpPatternMapping, modifyTb );
// Adaptation - begin
-#if defined(MGADAPT_ENABLE)
+#ifndef DISABLE_MG_ADAPT
int adaptTb = createTool( tr( "TB_ADAPTATION" ),QString( "SMESHAdaptationToolbar" ) ) ;
createTool( SMESHOp::OpMGAdapt, adaptTb );
#endif
popupMgr()->insert( separator(), -1, 0 );
// Adaptation - begin
-#if defined(MGADAPT_ENABLE)
+#ifndef DISABLE_MG_ADAPT
createPopupItem( SMESHOp::OpMGAdapt, OB, mesh );
#endif
// Adaptation - end
op = new SMESHGUI_Add0DElemsOnAllNodesOp();
break;
// Adaptation - begin
-#if defined(MGADAPT_ENABLE)
+#ifndef DISABLE_MG_ADAPT
case SMESHOp::OpMGAdapt:
break;
#endif
SMESH::MG_ADAPT_ptr SMESH_Gen_i::CreateMG_ADAPT()
{
-#if defined(MGADAPT_ENABLE)
+#ifndef DISABLE_MG_ADAPT
SMESH::MG_ADAPT_i* aMGadapt = new SMESH::MG_ADAPT_i();
SMESH::MG_ADAPT_var anObj = aMGadapt->_this();
return anObj._retn();
}
SMESH::MG_ADAPT_ptr SMESH_Gen_i::CreateAdaptationHypothesis()
{
-#if defined(MGADAPT_ENABLE)
+#ifndef DISABLE_MG_ADAPT
SMESH::MG_ADAPT_i* aMGadapt = new SMESH::MG_ADAPT_i();
SMESH::MG_ADAPT_var anObj = aMGadapt->_this();
return anObj._retn();
}
SMESH::MG_ADAPT_OBJECT_ptr SMESH_Gen_i::Adaptation( const char* adaptationType)
{
-#if defined(MGADAPT_ENABLE)
+#ifndef DISABLE_MG_ADAPT
if (!strcmp(adaptationType, "MG_Adapt"))
{
SMESH::MG_ADAPT_OBJECT_i* mg_adapt_object = new SMESH::MG_ADAPT_OBJECT_i();