Set NDEBUG on any non-DEBUG build

Merged Andre Offringa requested to merge set-ndebug into main

Merge request reports