[CMake] VS2019 LLVM Toolset?

Osman Zakir osmanzakir90 at hotmail.com
Thu Oct 24 14:28:41 EDT 2019


Hi.  I tried to specify the LLVM Toolset for VS2019 by doing "-T LLVM" and also "-T llvm" but it failed both times.  What I get for the former is this:

"
cmake -G "Visual Studio 16 2019" -A x64 -T LLVM .. -DCMAKE_INSTALL_PREFIX="C:/Program Files/FLTK" -DCMAKE_BUILD_TYPE=Release
CMake Error at CMakeLists.txt:24 (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.3.2+e481bbf88 for .NET Framework​
    Copyright (C) Microsoft Corporation. All rights reserved.​
​
    Build started 10/24/2019 10:19:12 PM.​
    Project "C:\fltk-1.3.5\build\CMakeFiles\3.15.4\VCTargetsPath.vcxproj" on node 1 (default targets).​
    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(379,5): error MSB8020: The build tools for LLVM (Platform Toolset = 'LLVM') cannot be found. To build using the LLVM build tools, please install LLVM build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\fltk-1.3.5\build\CMakeFiles\3.15.4\VCTargetsPath.vcxproj]​
    Done Building Project "C:\fltk-1.3.5\build\CMakeFiles\3.15.4\VCTargetsPath.vcxproj" (default targets) -- FAILED.​
​
    Build FAILED.​
​
    "C:\fltk-1.3.5\build\CMakeFiles\3.15.4\VCTargetsPath.vcxproj" (default target) (1) ->​
    (PrepareForBuild target) ->​
      C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(379,5): error MSB8020: The build tools for LLVM (Platform Toolset = 'LLVM') cannot be found. To build using the LLVM build tools, please install LLVM build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\fltk-1.3.5\build\CMakeFiles\3.15.4\VCTargetsPath.vcxproj]​
​
        0 Warning(s)​
        1 Error(s)​
​
    Time Elapsed 00:00:00.21​
​
​
  Exit code: 1​
​
​
​
-- Configuring incomplete, errors occurred!​
See also "C:/fltk-1.3.5/build/CMakeFiles/CMakeOutput.log".
"
For the latter it's similar.  Just change "'LLVM'" in the error message to "'LLVM'".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20191024/dba6edbe/attachment.html>


More information about the CMake mailing list