Merge branch 'mesh_ptr_as_extern' into 'master'

mesh pointer should be declared extern in visualpkg

See merge request ngsolve/netgen!543
This commit is contained in:
Hochsteger, Matthias 2022-12-09 15:41:31 +01:00
commit 69892f39eb
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ target_sources(nggui PRIVATE
vssolution.cpp
visualpkg.cpp
)
target_link_libraries( nggui PUBLIC "$<BUILD_INTERFACE:netgen_python>" ${MPI_CXX_LIBRARIES} ${OPENGL_LIBRARIES} )
target_link_libraries( nggui PUBLIC "$<BUILD_INTERFACE:netgen_python>" ${MPI_CXX_LIBRARIES} ${OPENGL_LIBRARIES} nglib)
install(FILES
meshdoc.hpp mvdraw.hpp visual_api.hpp

View File

@ -377,7 +377,7 @@ namespace netgen
}
VisualSceneMeshDoctor vsmeshdoc;
DLL_HEADER shared_ptr<Mesh> mesh;
DLL_HEADER extern shared_ptr<Mesh> mesh;
int Ng_MeshDoctor(ClientData clientData,
Tcl_Interp * interp,