Conversation
For users using older pugixml releases, add an ALIAS target which works with the new versions too.
8a1e7f2 to
d1d415e
Compare
|
This definitely wasn't intended. CMakeLists.txt does have this: So I'd think that pugixml::pugixml and pugixml are already equivalent - is that not the case? |
|
(and your change would make the alias self-recursive which doesn't seem right, but I'm not a CMake expert so maybe I'm missing something) |
|
My change is for users of |
|
Mhm - before the CMake rework I can see this worked as is after using find_package:
But after it doing this doesn't seem to add public includes so I'd rather fix this unconditionally because the intention was to make it possible to depend on |
|
Full example that I've tried: test.cpp: CMakeLists.txt: |
There is no circular alias. the |
|
Ahh the change is in the .cmake.in file - I missed that. Would there be any harm in adding this alias unconditionally? |
|
I think it'd be nice to deprecate the old, un-namespaced, target eventually. The way it is now in this PR is that |
|
I guess I don't see the potential for the deprecation until 2.0... But this doesn't seem to be harmful so I'll merge this as is. Thanks! |
|
Fixed in #389. |


This change came as news to us. Adding a release note and compatibility for others in the future :) .