adapt to cmake rule changes