Improve CMake

This commit is contained in:
Jonathan Müller 2018-12-18 17:49:26 +01:00
commit d44571f1c8
5 changed files with 19 additions and 27 deletions

View file

@ -7,16 +7,16 @@
#include <debug_assert.hpp>
#ifdef CPPAST_ENABLE_ASSERTIONS
# define CPPAST_ASSERTION_LEVEL 1
#else
#ifndef CPPAST_ASSERTION_LEVEL
# define CPPAST_ASSERTION_LEVEL 0
#endif
#ifdef CPPAST_ENABLE_PRECONDITION_CHECKS
# define CPPAST_PRECONDITION_LEVEL 1
#else
# define CPPAST_PRECONDITION_LEVEL 0
#ifndef CPPAST_PRECONDITION_LEVEL
# ifdef NDEBUG
# define CPPAST_PRECONDITION_LEVEL 0
# else
# define CPPAST_PRECONDITION_LEVEL 1
# endif
#endif
namespace cppast