Skip to content

Commit

Permalink
+ Re-enable Mefisto for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Apr 3, 2014
1 parent f2a922b commit c332b32
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/Mod/MeshPart/App/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ else(MSVC)
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
endif(MSVC)


add_definitions(-DHAVE_SMESH)
if (FREECAD_BUILD_SMESH)
add_definitions(-DHAVE_SMESH -DHAVE_MEFISTO)
endif(FREECAD_BUILD_SMESH)

if(FREECAD_BUILD_FEM_NETGEN)
add_definitions(-DHAVE_NETGEN)
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/MeshPart/App/Mesher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Mesh::MeshObject* Mesher::createMesh() const
hypoth.push_back(alg2d);
} break;
#endif
#if !defined (_MSC_VER)
#if defined (HAVE_MEFISTO)
case Mefisto: {
if (maxLength > 0) {
StdMeshers_MaxLength* hyp1d = new StdMeshers_MaxLength(hyp++, 0, meshgen);
Expand Down
4 changes: 4 additions & 0 deletions src/Mod/MeshPart/Gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ else(MSVC)
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
endif(MSVC)

if (FREECAD_BUILD_SMESH)
add_definitions(-DHAVE_SMESH -DHAVE_MEFISTO)
endif(FREECAD_BUILD_SMESH)

if(FREECAD_BUILD_FEM_NETGEN)
add_definitions(-DHAVE_NETGEN)
endif(FREECAD_BUILD_FEM_NETGEN)
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/MeshPart/Gui/Tessellation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Tessellation::Tessellation(QWidget* parent)
ui->comboFineness->setCurrentIndex(2);
on_comboFineness_currentIndexChanged(2);

#if defined (_MSC_VER)
#if !defined (HAVE_MEFISTO)
ui->radioButtonMefisto->setDisabled(true);
#else
ui->radioButtonMefisto->setChecked(true);
Expand Down

0 comments on commit c332b32

Please sign in to comment.