在cmake配置腾讯云sdk的时候,发生如下报错(powershell)
CMake Error: The source directory "D:/download/bestdev/cos-cpp-sdk-v5-master/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
PS D:\download\bestdev\cos-cpp-sdk-v5-master\build> cmake -G "Visual Studio 17 2022" -A Win64 ..
-- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631.
CMake Error at CMakeLists.txt:4 (project):
Failed to run MSBuild command:
D:/vs2022/vs2022ide/MSBuild/Current/Bin/amd64/MSBuild.exe
to get the value of VCTargetsPath:
适用于 .NET Framework MSBuild 版本 17.10.4+10fbfbf2e
生成启动时间为 2024/8/9 21:34:54。
节点 1 上的项目“D:\download\bestdev\cos-cpp-sdk-v5-master\build\CMakeFiles\3.29.3\VCTargetsPath.vcxproj”(默认目标)。
D:\vs2022\vs2022ide\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(839,5): error : The BaseOutputPath/OutputPath property is not set for project 'VCTargetsPath.vcxproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Debug' Platform='Win64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [D:\download\bestdev\cos-cpp-sdk-v5-master\build\CMakeFiles\3.29.3\VCTargetsPath.vcxproj]
已完成生成项目“D:\download\bestdev\cos-cpp-sdk-v5-master\build\CMakeFiles\3.29.3\VCTargetsPath.vcxproj”(默认目标)的 操作 - 失败。
ai翻译后为:错误发生在文件Microsoft.Common.CurrentVersion.targets的第839行,第5个字符处:项目VCTargetsPath.vcxproj没有设置BaseOutputPath或OutputPath属性。请确保你为这个项目指定了一个有效的配置和平台组合。配置为Debug,平台为Win64。你可能会看到这个错误消息,因为你试图在没有解决方案文件的情况下构建一个项目,并且指定了一个非默认的配置或平台,这个配置或平台并不存在于该项目中。[D:\download\bestdev\cos-cpp-sdk-v5-master\build\CMakeFiles\3.29.3\VCTargetsPath.vcxproj]
生成项目“D:\download\bestdev\cos-cpp-sdk-v5-master\build\CMakeFiles\3.29.3\VCTargetsPath.vcxproj”(默认目标)的操作已失败。
生成失败。
没得办法了,求各位,指点一下