reset define NETGEN_PYTHON to avoid hard dependency to pybind11

This commit is contained in:
wmayer
2019-11-02 11:29:10 +01:00
parent d276c84516
commit 25bc2af307
5 changed files with 20 additions and 0 deletions

View File

@@ -83,6 +83,10 @@ namespace nglib {
# pragma clang diagnostic ignored "-Wmacro-redefined"
#endif
#ifdef NETGEN_PYTHON
#undef NETGEN_PYTHON
#endif
#include <occgeom.hpp>
#include <meshing.hpp>
//#include <ngexception.hpp>

View File

@@ -51,6 +51,10 @@ namespace nglib {
# pragma clang diagnostic ignored "-Wmacro-redefined"
#endif
#ifdef NETGEN_PYTHON
#undef NETGEN_PYTHON
#endif
#include <meshing.hpp>
#if defined(__clang__)

View File

@@ -50,6 +50,10 @@ namespace nglib {
# pragma clang diagnostic ignored "-Wmacro-redefined"
#endif
#ifdef NETGEN_PYTHON
#undef NETGEN_PYTHON
#endif
#include <meshing.hpp>
#if defined(__clang__)

View File

@@ -68,6 +68,10 @@ namespace nglib {
# pragma clang diagnostic ignored "-Wmacro-redefined"
#endif
#ifdef NETGEN_PYTHON
#undef NETGEN_PYTHON
#endif
#include <occgeom.hpp>
#include <meshing.hpp>
//#include <meshing/meshtype.hpp>

View File

@@ -77,6 +77,10 @@
# pragma clang diagnostic ignored "-Wmacro-redefined"
#endif
#ifdef NETGEN_PYTHON
#undef NETGEN_PYTHON
#endif
#include <occgeom.hpp>
#if defined(__clang__)