AFAIK there are some checks that are only compiled in a debug build. If you change this maybe you can also include a call to the test suite using `ctest` or the `test` target.