I hear this all the time, and it's absurd. The high P/Es of innumerable companies (like Amazon) are compelling evidence that investors are well aware of the long game companies play and they approve of it.
The charge that companies are eating their seed corn to satisfy wall street assumes that investors are monumentally stupid. Share prices are based on the collective best estimate of the future value of a company. Any hint that the company has sacrificed the long term for the short term will tank the stock value.