diff --git a/src/common.hpp b/src/common.hpp
index 6ce4298d690b13f61d347cc64dac75a828d5a706..a44fc94c4b5abbe28dfe3c6948e86298e95e2034 100644
--- a/src/common.hpp
+++ b/src/common.hpp
@@ -12,8 +12,10 @@
 
 #include <Eigen/Core>
 
+#define NDEBUG
 #include <cppad/cppad.hpp>
 #include <cppad/example/cppad_eigen.hpp>
+#undef NDEBUG
 
 #include <adept.h>