François Lelord said this quote

...it's a mistake to think that happiness is the goal. I'm not sure I understand. I was referring to the goals which you in your civilization are so good at setting yourselves, and which incidentally allow you to achieve many interesting things. But happiness is a different thing altogether. If you try to achieve it, you have every chance of failing. And besides, how would you ever know that you achieved it? Of course one can't blame people, especially unhappy people, for wanting to be happier and setting themselves goals in order to try to escape from their unhappiness.