This PR fixes a regression for the libevent package introduced in #29835.
The libevent package defaults to the “Release” build type, which overrides our per-build-type optimization flags with -O3.
To prevent this behavior, set CMAKE_BUILD_TYPE to “None”, consistent with how other packages are handled.