@Seth, the assert is being generated in the standard library not KiCad so the NDEBUG flag from KiCad's cmake won't affect it since it is controlled by different flags. What seems to be happening is that Fedora is enabling the standard library asserts by passing "-D_GLIBCXX_ASSERTIONS" to the build as one of the compile flags from the system. This enables the checking of array indices at runtime with assert statements inside the library itself.
We need the Fedora build system to not send the "-D_GLIBCXX_ASSERTIONS" flag to the compiler to disable these checks (or somehow remove it from the generated CXXFLAGS variable).
@Seth, the assert is being generated in the standard library not KiCad so the NDEBUG flag from KiCad's cmake won't affect it since it is controlled by different flags. What seems to be happening is that Fedora is enabling the standard library asserts by passing "-D_GLIBCXX_ ASSERTIONS" to the build as one of the compile flags from the system. This enables the checking of array indices at runtime with assert statements inside the library itself.
We need the Fedora build system to not send the "-D_GLIBCXX_ ASSERTIONS" flag to the compiler to disable these checks (or somehow remove it from the generated CXXFLAGS variable).