More checks on cmake script.