Call cmake_minimum_required() before project()
Also correct a typo.
Differential revision: https://phabricator.kde.org/D8510