I have same problem on VLC Windows cross build. After I upgrade cmake to 3.22.0, this problem is fixed.
I download latest cmake source code and build.
I also download fftw3 package and extracted under /home/[username]/fftw3. Set FFTW3_DIR to ~/fftw3 by
export FFTW3_DIR=/home/[username]/fftw3