There are some cmake_minimum_required(VERSION 3.3) in the source, that are not supported anymore by the current cmake releases (e.g. 4.1.2).
AFAIK replacing all occurrences of cmake_minimum_required(VERSION 3.3) with cmake_minimum_required(VERSION 3.15) works.
for example:
find . -type f -print0 | xargs -0 sed -i "s/cmake_minimum_required(VERSION 3\.3)/cmake_minimum_required(VERSION 3.15)/"