Azure: CMake does not find MSBuild options
See original GitHub issueRunning 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:
- Created 5 years ago
- Reactions:1
- Comments:10 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Known workaround for this is to use
NMake Makefiles
as the CMake generator.Yes but e.g. for
Ninja
you need to addninja
to thebuild
requirements.