ReleaseAssert Module

ReleaseAssert is a module which adds a new build type to your project. The ReleaseAssert build type is based on the Release build type but removes the command line arguments which disable assertions. To add this build type to your project, place this file in your project source tree and add the following to your root CMakeLists.txt.

include(ReleaseAssert)

Currently the supported platforms are Windows, Linux, and Android.

For Unix Makefiles, Ninja or similar generators you can enable the ReleaseAssert build type by setting CMAKE_BUILD_TYPE=ReleaseAssert on the command line or with ccmake or cmake-gui.

For IDE’s such as Visual Studio a ReleaseAssert build configuration will be added to the project which can be selected with the GUI interface.