Cmake не создает файлы sln (Visual Studio 2017) - PullRequest
0 голосов
/ 08 октября 2018

Я пытаюсь создать файл *.sln с помощью CMake, но, к сожалению, я получаю сообщение об ошибке, показанное ниже.Обратите внимание, что файлы CMakeCXXCompilerId.cpp и CompilerIdCXX.vcxproj существуют в указанных папках.У меня есть разработка универсальной платформы Windows и разработка рабочего стола с установленным C ++, и я также попытался запустить сценарий от имени администратора.

Команда выглядит следующим образом: cmake.exe -G "Visual Studio 15 2017 Win64".

Заранее спасибо.

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler:  
Build flags: 
Id flags:  

The output was:
1
Microsoft (R) Build Engine version 15.8.169+g1ccb72aefa for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 10/8/2018 2:30:02 PM.
Project "C:\projects\EuropeanCoDiOptimization\dispatching\src\CMakeFiles\3.12.3\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
  Creating directory "Debug\".
  Creating directory "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
  Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:classic /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc141.pdb" /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp
  CMakeCXXCompilerId.cpp
c1xx : fatal error C1083: Cannot open source file: 'CMakeCXXCompilerId.cpp': No such file or directory [C:\projects\EuropeanCoDiOptimization\dispatching\src\CMakeFiles\3.12.3\CompilerIdCXX\CompilerIdCXX.vcxproj]
Done Building Project "C:\projects\EuropeanCoDiOptimization\dispatching\src\CMakeFiles\3.12.3\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\projects\EuropeanCoDiOptimization\dispatching\src\CMakeFiles\3.12.3\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) ->
(ClCompile target) -> 
  c1xx : fatal error C1083: Cannot open source file: 'CMakeCXXCompilerId.cpp': No such file or directory [C:\projects\EuropeanCoDiOptimization\dispatching\src\CMakeFiles\3.12.3\CompilerIdCXX\CompilerIdCXX.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:01.61


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler:  
Build flags: 
Id flags:  

The output was:
1
Microsoft (R) Build Engine version 15.8.169+g1ccb72aefa for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 10/8/2018 2:30:05 PM.
Project "C:\projects\EuropeanCoDiOptimization\dispatching\src\CMakeFiles\3.12.3\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
  Creating directory "Debug\".
  Creating directory "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
  Creating "Debug\CompilerIdCXX.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\CL.exe /c /nologo /W0 /WX- /diagnostics:classic /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc141.pdb" /Gd /TP /FC /errorReport:queue CMakeCXXCompilerId.cpp
  CMakeCXXCompilerId.cpp
c1xx : fatal error C1083: Cannot open source file: 'CMakeCXXCompilerId.cpp': No such file or directory [C:\projects\EuropeanCoDiOptimization\dispatching\src\CMakeFiles\3.12.3\CompilerIdCXX\CompilerIdCXX.vcxproj]
Done Building Project "C:\projects\EuropeanCoDiOptimization\dispatching\src\CMakeFiles\3.12.3\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\projects\EuropeanCoDiOptimization\dispatching\src\CMakeFiles\3.12.3\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) ->
(ClCompile target) -> 
  c1xx : fatal error C1083: Cannot open source file: 'CMakeCXXCompilerId.cpp': No such file or directory [C:\projects\EuropeanCoDiOptimization\dispatching\src\CMakeFiles\3.12.3\CompilerIdCXX\CompilerIdCXX.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:01.65
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...