There is an updated pull request by joshuakraemer against master on the void-packages repository https://github.com/joshuakraemer/void-packages cmake-build-style https://github.com/void-linux/void-packages/pull/31990 Add -DNDEBUG to CFLAGS and CXXFLAGS in CMake build style CMake adds `-DNDEBUG` with build types `Release`, `MinSizeRel` and `RelWithDebInfo` (see https://github.com/Kitware/CMake/blob/master/Modules/Compiler/GNU.cmake#L57). `NDEBUG` disables `assert()`, which can improve performance. A patch file from https://github.com/void-linux/void-packages/pull/31990.patch is attached