Conversation
|
I thought the previous change worked for me, and it unblocked vcpkg upgrade. Are there differences in behavior depending on how specifically the package is discovered? |
|
|
|
Yeah I double-checked and the previous change worked for me in a simple test as well. Were you able to reproduce the reported error locally? Unsure what the setup differences are. |
|
This change works for me as well, so there's no harm in it but I'd like to make sure that it fixes the problem @randyfan encountered before tagging a new patch release. |
Agreed on that, especially given that I couldn't trigger the problem locally either. I think vcpkg does some weird things with |
|
I would suggest to use |
|
Does that work with It does. Updated. Thanks. |
This is not allowed on IMPORTED targets.
ba8e1cb to
4feab60
Compare
|
I was able to fix this issue locally after changing our worker image from Visual Studio 2017 to Visual Studio 2019 in appveyor.yml. |
|
Hmm, that doesn't sound right. What else changed in that uplift? Does this change fix the original problem (namely because I wouldn't want to have to ask people to upgrade to vs2019 to fix this)? |
|
This is all I changed in our local repo to fix the appveyor build: randyfan/NOME3@0998d8d. To summarize, I removed flex and bison installation (should be unrelated to the issue), and changed the following to 2019: so changing to 2019 seems to have fixed the problem I had with ALIAS |
|
VS2019 env on AppVeyor has CMake 3.18, and 2017 has 3.16. I only tested this with 3.15... maybe related? I also wonder if you’re using any caching in the build so that a change f environment would have cleared it. |
|
Could you please test this change in the original, failing, configuration to know if this addresses it please (since we haven't been able to reproduce the error)? Caching wouldn't (sigh shouldn't) affect this; the target needs to be made every configuration. |
|
Sure. To test the change, do I just revert to the original failing appveyor.yml and check my appveyor build? Sorry I'm kind of new to this |
|
Hmm. Not sure. You probably have to apply a patch to a vcpkg build, but that's outside my knowledge here :/ . |
@randyfan Yes, it makes sense to revert to the original failing appveyor.yml and test the build. |
|
How do I test the change from this PR? Vcpkg is automatically installing the most recent version of pugixml for me rn. Is there a way I can specify a branch or version? |
|
@randyfan You can download a patch from the PR here using: The updated, required files are attached here for your convenience. |
Here is some releated info from the CMake 3.18 Release Notes:
|
|
I was able to reproduce the original issue after a bit more testing; not sure what exactly the difference in my setup was wrt earlier, I think I might have used a different version of CMake after all, or perhaps some accidentally cached CMake output. On current pugixml master, when using cmake-3.18.4-win64-x64 everything works great; when using cmake-3.17.5-win64-x64 I get the following: This explains why the AppVeyor upgrade to VS2019 fixed the issue. Obviously pugixml CMake shouldn't require 3.18, and I confirmed that with the patch CMake 3.17 as well as some earlier versions (3.16, 3.15; I can't confirm 3.10 since it doesn't support VS2019 which is the only VS version I have installed so that will have to do) work as well. So I'm going to merge this and tag 1.11.2 to make sure this works for all versions... |
|
... and this is now done. Thanks everyone for the help with these issues! I hope CMake problems are behind us now. |
This is not allowed on IMPORTED targets.
@randyfan Sorry about that. Thanks for the report. I thought I had tested it, but apparently not.
@zeux 1.11.2 it appears :/ .