我正在尝试使用VS 2013和CMake 3.12.3编译软件 Docker容器。当我尝试配置项目时遇到了这个问题:
The C++ compiler
"C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir:
C:/workspace/_Sandbox_BUILD/libwcrypt/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/Program Files (x86)/MSBuild/12.0/bin/MSBuild.exe"
"cmTC_aa4a8.vcxproj" "/p:Configuration=Debug" "/p:VisualStudioVersion=12.0"
Microsoft (R) Build Engine version 12.0.30723.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: cmTC_aa4a8.vcxproj
CMake will not be able to correctly generate this project.
它抱怨cmTC_aa4a8.vcxproj此文件。我看到了 而是生成文件cmTC_aa4a8.vcxproj.tmp。继续运行 主机正常运行,我可以在计算机上看到cmTC_aa4a8.vcxproj 文件系统。
在C:\ workspace_Sandbox_BUILD \ libwcrypt \ build \ CMakeFiles \ 3.12.2 \ CompilerIdCXX内部, 我可以看到该项目已成功构建。二进制文件 那里是CompilerIdCXX.exe。只有简单的测试程序会失败。
这里可能是什么问题?来自C:\ Program的CMake文件 Files \ CMake \ share \ cmake-3.12 \ Modules可能负责创建 cmTC_aa4a8.vcxproj吗?