Conda-forge.github.io: Azure: CMake does not find MSBuild options

Created on 5 Feb 2019  路  10Comments  路  Source: conda-forge/conda-forge.github.io

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:

D:\bld\thrift-cpp_1549275362470\work\build\CMakeFiles\3.13.2\VCTargetsPath.vcxproj(15,2): error MSB4019: The imported project "D:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

This is probably due to a missing VCTargetsPath.

azure

Most helpful comment

Known workaround for this is to use NMake Makefiles as the CMake generator.

All 10 comments

cc @DavidStaheli @willsmythe

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jakirkham picture jakirkham  路  5Comments

jakirkham picture jakirkham  路  4Comments

bulli92 picture bulli92  路  4Comments

westurner picture westurner  路  3Comments

prachi237 picture prachi237  路  3Comments