Fix inverted CMake logic in -Wno-unused-local-typedefs check.