How to #define a symbol with CMake

Following the discussion we had a few days ago: in the CMakeLists.txt, put

ADD_DEFINITIONS(-DNDEBUG)

and NDEBUG will automatically be defined.

Hope this fixes the performance issues you had,

Cheers,
Benoit