Commit 6b476b72 authored by Max Lyon's avatar Max Lyon

force static property casts in property visualizer due to failing dynamic cast...

force static property casts in property visualizer due to failing dynamic cast caused be different typeids over different shared objects on mac
parent 364858a0
......@@ -7,11 +7,13 @@ endif()
if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/PolyhedralMesh)
add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
add_definitions (-DENABLE_OPENVOLUMEMESH_POLYHEDRAL_SUPPORT)
add_definitions (-DOVM_FORCE_STATIC_CAST)
endif()
if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/HexahedralMesh)
add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
add_definitions (-DENABLE_OPENVOLUMEMESH_HEXAHEDRAL_SUPPORT)
add_definitions (-DOVM_FORCE_STATIC_CAST)
endif()
find_package(OpenVolumeMesh)
......@@ -20,6 +22,7 @@ if(OPENVOLUMEMESH_FOUND)
if(EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/TetrahedralMesh/TetrahedralMesh.hh)
add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
add_definitions (-DENABLE_OPENVOLUMEMESH_TETRAHEDRAL_SUPPORT)
add_definitions (-DOVM_FORCE_STATIC_CAST)
endif()
endif()
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment