fixed cmakeGenerator bug