[CMake] Can't Generate Project Files for VS2019
Osman Zakir
osmanzakir90 at hotmail.com
Sat Apr 27 09:00:10 EDT 2019
I'm having trouble using CMake to generate solution and project files for Emscripten and Binaryen. When I try to invoke it from the command line, I get this message:
"
cmake -G"Visual Studio 16 2019" -A Win64 -DCMAKE_INSTALL_PREFIX="C:/Program Files/binaryen" -DCMAKE_BUILD_TYPE=Release ../
CMake Error at CMakeLists.txt:1 (PROJECT):
Failed to run MSBuild command:
C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe
to get the value of VCTargetsPath:
Microsoft (R) Build Engine version 16.0.461+g6ff56ef63c for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 4/27/2019 5:48:57 PM.
Project "C:\binaryen\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj" on node 1 (default targets).
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(775,5): error : The 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. [C:\binaryen\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj]
Done Building Project "C:\binaryen\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\binaryen\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj" (default target) (1) ->
(_CheckForInvalidConfigurationAndPlatform target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(775,5): error : The 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. [C:\binaryen\build\CMakeFiles\3.14.3\VCTargetsPath.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.20
Exit code: 1
-- Configuring incomplete, errors occurred!
See also "C:/binaryen/build/CMakeFiles/CMakeOutput.log".
"
Any help is appreciated. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190427/fc3aa538/attachment.html>
More information about the CMake
mailing list