Installation include path of Tracy.hpp with cmake has changed in version 0.12.0
I'm not sure if this is a bug or intentional:
when installing tracy with cmake, Tracy.hpp is now (i.e. with Tracy 0.12.0) installed in /usr/local/include/tracy/tracy/Tracy.hpp
In the previous release 0.11.0, it was installed in /usr/local/include/tracy/Tracy.hpp.
Notice the 2 tracy/ with 0.12.0 vs only 1 with 0.11.0.
Is this an intentional change? It does not look right to me:
- code instrumented with Tracy would now have to either use
#include <tracy/tracy/Tracy.hpp>which looks weird compared to#include <tracy/Tracy.hpp>, or use an additional-I /usr/local/include/tracyto be able to use#include <tracy/Tracy.hpp> - the documentation in 0.12.0 still says to use
#include <tracy/Tracy.hpp> - it's not mentioned in the release notes of Tracy-0.12.0
The difference in installation path of Tracy.hpp between 0.11.0 and 0.12.0 was introduced by https://github.com/wolfpld/tracy/commit/40d12b6a53f240cbe0de369c45fcbb44d021e91c which does not explain the rationale behind the change (CC: @Xnuman author of that change).
There is some additional commentary in #986.
I don't really use this functionality, but I believe the problem with the previous approach was that the client and common directories were put directly into /usr/include, which is less than ideal. So the new solution fixes that problem but it seems it is missing include path to /usr/include/tracy, as you noticed.
09558a03 should fix.