]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use DEAL_II_WITH_CXX11 to guard c++11 code.
authorBruno Turcksin <bruno.turcksin@gmail.com>
Fri, 22 Jul 2016 18:06:30 +0000 (14:06 -0400)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Wed, 3 Aug 2016 20:34:02 +0000 (16:34 -0400)
CMakeLists.txt
contrib/python-bindings/include/cell_accessor_wrapper.h
contrib/python-bindings/include/point_wrapper.h
contrib/python-bindings/include/triangulation_wrapper.h
contrib/python-bindings/source/cell_accessor_wrapper.cc
contrib/python-bindings/source/export_cell_accessor.cc
contrib/python-bindings/source/export_point.cc
contrib/python-bindings/source/export_triangulation.cc
contrib/python-bindings/source/point_wrapper.cc
contrib/python-bindings/source/triangulation_wrapper.cc
contrib/python-bindings/source/wrappers.cc

index fb2debfca6e02a4d33d3a9490bbba71054f25c7a..b87921f9e9f83614a8a763f13a5d56069bf360c3 100644 (file)
@@ -151,7 +151,9 @@ ADD_SUBDIRECTORY(source) # has to be included after bundled
 ADD_SUBDIRECTORY(cmake/config) # has to be included after source
 ADD_SUBDIRECTORY(examples)
 
-ADD_SUBDIRECTORY(contrib/python-bindings/source)
+IF(DEAL_II_WITH_PYTHON)
+  ADD_SUBDIRECTORY(contrib/python-bindings/source)
+ENDIF()
 
 IF(DEAL_II_HAVE_TESTS_DIRECTORY)
   ADD_SUBDIRECTORY(tests)
index a3269c2588176399d658995523d49230163f0cfa..695315e935b953f1c1712dc7fc3bfb87c24755ce 100644 (file)
 #ifndef dealii__cell_accessor_wrapper_h
 #define dealii__cell_accessor_wrapper_h
 
+#include <deal.II/base/config.h>
+
+#ifdef DEAL_II_WITH_CXX11
+
 #include <deal.II/grid/tria_accessor.h>
 
 DEAL_II_NAMESPACE_OPEN
@@ -136,3 +140,5 @@ namespace python
 DEAL_II_NAMESPACE_CLOSE
 
 #endif
+
+#endif
index 75f3a01fe34ca92dd77381a00d7b5d6514c918c5..7c266fa0073fdcaede97a337d9b57fd076984d3c 100644 (file)
@@ -17,6 +17,9 @@
 #define dealii__point_wrapper_h
 
 #include <deal.II/base/config.h>
+
+#ifdef DEAL_II_WITH_CXX11
+
 #include <boost/python.hpp>
 
 DEAL_II_NAMESPACE_OPEN
@@ -139,3 +142,5 @@ namespace python
 DEAL_II_NAMESPACE_CLOSE
 
 #endif
+
+#endif
index 13b7367b9a5c67474b458940c6ff52f0c4b9d668..efd63e3cee3c101c0c9ae4e9949e6b007a61dc75 100644 (file)
 #ifndef dealii__triangulation_wrapper_h
 #define dealii__triangulation_wrapper_h
 
+#include <deal.II/base/config.h>
+
+#ifdef DEAL_II_WITH_CXX11
+
 #include <point_wrapper.h>
 #include <boost/python.hpp>
 #include <string>
@@ -219,3 +223,5 @@ namespace python
 DEAL_II_NAMESPACE_CLOSE
 
 #endif
+
+#endif
index fc3ba9bf54d103ef9e0ba7e4f86593f1f998b18d..3aa3495b1b9793aba2c646ea62ada0c158eb6349 100644 (file)
 //
 // ---------------------------------------------------------------------
 
+#include <cell_accessor_wrapper.h>
+
+#ifdef DEAL_II_WITH_CXX11
+
 #include <point_wrapper.h>
 #include <triangulation_wrapper.h>
-#include <cell_accessor_wrapper.h>
 #include <boost/python.hpp>
 
 DEAL_II_NAMESPACE_OPEN
@@ -474,3 +477,5 @@ namespace python
 }
 
 DEAL_II_NAMESPACE_CLOSE
+
+#endif
index 52891c2dff10620a6c939eb248bdbbc6412d112a..887b407307c10428691baeb9d3c08daa2519bfce 100644 (file)
@@ -17,6 +17,8 @@
 #include <triangulation_wrapper.h>
 #include <boost/python.hpp>
 
+#ifdef DEAL_II_WITH_CXX11
+
 DEAL_II_NAMESPACE_OPEN
 
 namespace python
@@ -107,3 +109,5 @@ namespace python
 }
 
 DEAL_II_NAMESPACE_CLOSE
+
+#endif
index e79c82c05835a10eb43bd1aab68197e5e9f5b62d..61b840fe82f6a709b29c1f88427b51242728de00 100644 (file)
@@ -14,6 +14,9 @@
 // ---------------------------------------------------------------------
 
 #include <point_wrapper.h>
+
+#ifdef DEAL_II_WITH_CXX11
+
 #include <deal.II/base/point.h>
 #include <deal.II/base/exceptions.h>
 #include <boost/python.hpp>
@@ -36,3 +39,5 @@ namespace python
 }
 
 DEAL_II_NAMESPACE_CLOSE
+
+#endif
index d2cede42e40783a65334547ccad51748362e7cca..3b6e3fb9f41a2538daecf079b35d3d43eb20db82 100644 (file)
@@ -14,6 +14,9 @@
 // ---------------------------------------------------------------------
 
 #include <triangulation_wrapper.h>
+
+#ifdef DEAL_II_WITH_CXX11
+
 #include <cell_accessor_wrapper.h>
 #include <boost/python.hpp>
 
@@ -220,3 +223,5 @@ namespace python
 }
 
 DEAL_II_NAMESPACE_CLOSE
+
+#endif
index 833786b8d010dcda6cfffc97732202c1321f1e5a..7d8e928498f4ca895737b5d62f6db9a426d33224 100644 (file)
@@ -14,6 +14,9 @@
 // ---------------------------------------------------------------------
 
 #include <point_wrapper.h>
+
+#ifdef DEAL_II_WITH_CXX11
+
 #include <deal.II/base/point.h>
 
 DEAL_II_NAMESPACE_OPEN
@@ -178,3 +181,5 @@ namespace python
 }
 
 DEAL_II_NAMESPACE_CLOSE
+
+#endif
index 84222ac8638e9a7733214a75f9059c17f80546ff..39a27c61060d0e0334471f34889d1d137e4e67ca 100644 (file)
@@ -14,6 +14,9 @@
 // ---------------------------------------------------------------------
 
 #include <triangulation_wrapper.h>
+
+#ifdef DEAL_II_WITH_CXX11
+
 #include <cell_accessor_wrapper.h>
 #include <deal.II/grid/tria.h>
 #include <deal.II/grid/grid_generator.h>
@@ -610,3 +613,5 @@ namespace python
 }
 
 DEAL_II_NAMESPACE_CLOSE
+
+#endif
index dc09aa874bc082e553616a8771fe8f16f126d7dc..e64fb1b7a9e2986c62847b976beeb1a9508a0b78 100644 (file)
@@ -14,6 +14,9 @@
 // ---------------------------------------------------------------------
 
 #include <deal.II/base/config.h>
+
+#ifdef DEAL_II_WITH_CXX11
+
 #include <boost/python.hpp>
 
 DEAL_II_NAMESPACE_OPEN
@@ -47,3 +50,5 @@ BOOST_PYTHON_MODULE(PyDealII)
   dealii::python::export_point();
   dealii::python::export_triangulation();
 }
+
+#endif

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.