From c9ac332971091718e201e665181a54d1a04cac52 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Wed, 31 May 2017 19:57:42 +0200 Subject: [PATCH] Export OCC module only when configured with OCC --- ng/netgenpy.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ng/netgenpy.cpp b/ng/netgenpy.cpp index e18e1f4d..6cbeba60 100644 --- a/ng/netgenpy.cpp +++ b/ng/netgenpy.cpp @@ -17,7 +17,9 @@ void DLL_HEADER ExportCSGVis(py::module &m); void DLL_HEADER ExportGeom2d(py::module &m); void DLL_HEADER ExportSTL(py::module &m); void DLL_HEADER ExportSTLVis(py::module &m); +#ifdef OCCGEOMETRY void DLL_HEADER ExportNgOCC(py::module &m); +#endif // OCCGEOMETRY PYBIND11_PLUGIN(libngpy) { @@ -30,8 +32,10 @@ PYBIND11_PLUGIN(libngpy) ExportGeom2d(geom2d); py::module stl = ngpy.def_submodule("_stl", "pybind stl module"); ExportSTL(stl); +#ifdef OCCGEOMETRY py::module NgOCC = ngpy.def_submodule("_NgOCC", "pybind NgOCC module"); ExportNgOCC(NgOCC); +#endif // OCCGEOMETRY #ifdef OPENGL py::module meshvis = ngpy.def_submodule("meshvis", "pybind meshvis module"); ExportMeshVis(meshvis);