Re: [CMake] VS2019 LLVM Toolset?
On Thu, 24 Oct 2019 at 21:36, Osman Zakir wrote: > > Yes, I looked at this: > https://devblogs.microsoft.com/cppblog/clang-llvm-support-in-visual-studio/ > so I kind of get it. VS2019 has built-in support for LLVM. I of course do > have LLVM installed. So for this, I have to put "ClangCL" as the argument to > -T? Okay, thanks. I'll try that. The relevant part is only the first screenshot. Please note that Visual Studio 2019 also has some kind of "native support for CMake", so you don't even need to run CMake manually to generate the project. You just open a folder with CMakeLists and generate projects on the fly with whichever toolset you prefer. I was playing with it a while back with a Preview version, but it kept crashing too often to be useful. They have released a few updates since, but I never tested again, so I'm not sure if it got better or not (I hope it did), I simply keep using the traditional way for now. Mojca -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] VS2019 LLVM Toolset?
Yes, I looked at this: https://devblogs.microsoft.com/cppblog/clang-llvm-support-in-visual-studio/ so I kind of get it. VS2019 has built-in support for LLVM. I of course do have LLVM installed. So for this, I have to put "ClangCL" as the argument to -T? Okay, thanks. I'll try that. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] VS2019 LLVM Toolset?
On Thu, 24 Oct 2019 at 20:28, Osman Zakir wrote: > > Hi. I tried to specify the LLVM Toolset for VS2019 by doing "-T LLVM" and > also "-T llvm" but it failed both times. For me "-T ClangCL" seems to have worked (provided that you install Clang with VS 2019, of course). (To figure out the potentially correct value I looked into the xml project file generated when I manually changed the toolset and saved the project.) Under 2017 this was a separate "plugin" (or whatever it was called), while VS 2019 provides it natively. What I could not get working correctly under this CMake-generated setup are the unit tests for CUDA (there must be some faulty compiler flags). Mojca -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] VS2019 LLVM Toolset?
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'". -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake