The variable is defined as KF_MIN_VERSION but is then used as KF5_MIN_VERSION.
KF_MIN_VERSION
KF5_MIN_VERSION