Open xhochy opened 5 years ago
cc @DavidStaheli @willsmythe
This looks incredibly similar to https://stackoverflow.com/questions/8497931/msbuild-does-not-contain-a-value-for-the-vctargetspath-property
I have a small little tester project running here that fetches some of the relevant registry keys
https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=11185
cc @msarahan @mingwandroid
Known workaround for this is to use NMake Makefiles
as the CMake generator.
Yeah using nmake
on Windows has been useful for several issues. Glad to hear that it works here as well.
It looks like this issue is also related: https://github.com/conda-forge/_libarchive_static_for_cph-feedstock/issues/5
NMake Makefiles
fixed it.
Perferred solution is nowadays to use Ninja
or NMake Makefiles JOM
as the generator as NMake Makefiles
doesn't parallelize.
Are those available in the conda forge Windows build tools?
Yes but e.g. for Ninja
you need to add ninja
to the build
requirements.
Running cmake in Azure DevOps Pipelines currently fails, e.g. https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=10607&view=logs&jobId=2cc45e14-23e3-52d7-b33a-8c2744410b97&taskId=22e1f59c-6ad0-5e39-c80e-f2cebe3974dd&lineStart=724&lineEnd=725&colStart=1&colEnd=1
The relevant error message is:
This is probably due to a missing
VCTargetsPath
.