question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure: CMake does not find MSBuild options

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
xhochycommented, Jul 9, 2019

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

0reactions
xhochycommented, Nov 17, 2019

Yes but e.g. for Ninja you need to add ninja to the build requirements.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CMake is unable to find MSBuild.exe - Stack Overflow
I'm trying to build Assimp library using cmake (for OpenGL tutorials), but I'm unable to build the required files with CMake.
Read more >
cmake cannot find VC2017 after VC2019 installation
* the msbuild.exe program exists in the VC2017 installation directory. The problem gets fixed if I put the msbuild's directory on the PATH ......
Read more >
VS: CMake does not find portable instance (#21639) · Issues
It seems that cmake expects Visual Studio to be fully installed, and enforces this by querying C:\ProgramData and the registry. These queries ...
Read more >
cmake problems with MSBuild.exe - Usage
I would first check that MSBuild.exe is working and building projects from the command line to verify the installation is working correctly.
Read more >
CMake projects in Visual Studio | Microsoft Learn
You can specify source files, find libraries, set compiler and linker options, and specify other build system-related information. For more ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found