for cmake version < 3.0