Fixing cmake statement order.