Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-02-03 Thread Gilles Khouzam
Hi Yi-Hong, I think that this is an issue that was recently fix in CMake which is not in our fork. I’ll look at pulling in this change in our branch. From: Yi-Hong Lyu [mailto:b95705...@ntu.edu.tw] Sent: Wednesday, February 3, 2016 11:46 To: Gilles Khouzam Cc:

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-02-03 Thread Steven Stallion
A selfish request: would it be possible to slip this into the 3.5 release? This is something that I (and the company I work for) are very interested in, and I would like to avoid pulling a fork into our workstream. Cheers, Steve On Mon, Feb 1, 2016 at 8:47 AM, Gilles Khouzam

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-02-03 Thread Gilles Khouzam
Hi Yi-Hong, I’ve updated our branch to include the fix to not require the Windows 10 SDK. But I think that I misunderstood what you had meant by Clang-CL. The support I added was for Clang with the Microsoft CodeGen engine which is included in Visual Studio 2015 Update 1, what’s where the

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-02-03 Thread Yi-Hong Lyu
Hello Gilles, Here it is: PS > cmake -G "Visual Studio 14 2015" -T v140_clang_3_7 -DLLVM_PATH="E:\\llvm" -DCMAKE_SYSTEM_VERSION=8.1 -DCMAKE_C_COMPILER="E:\\e2tools\\ext-tools\\llvm\\clang-cl.exe" -DCMAKE_CXX_COMPILER="E:\\e2tools\\ext-tools\\llvm\\clang-cl.exe" ..\src\ -- The CXX compiler

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-02-03 Thread Yi-Hong Lyu
Hello Gilles, Thanks for you mail. It is really useful to me but I encounter an error. My use case is to use clang-cl with my own target instead of x86/x64 target. Therefore I don't want to include any headers of VS x86/x64 and use any library of VS x86/x64: PS > cmake -G "Visual Studio 14 2015"

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-02-03 Thread Gilles Khouzam
Hi Yi-Hong, Can you try to add the following: -DCMAKE_SYSTEM_VERSION=8.1 to your parameters? From: Yi-Hong Lyu [mailto:b95705...@ntu.edu.tw] Sent: Wednesday, February 3, 2016 11:11 To: Gilles Khouzam Cc: Nicholas Braden ; cmake@cmake.org

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-02-01 Thread Gilles Khouzam
Hi Yi-Long Clang-Cl requires a few changes in order to work properly, I've prototyped the support for Clang-Cl on our CMake fork with the plan to integrate the support once we've got good confirmation and work through some of the design issues. You can find the code on

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-01-31 Thread Yi-Hong Lyu
Hello Bill, If I generate the ALL_BUILD.vcxproj for MSVC 19.0.23506.0 as usual, I can use command "msbuild ALL_BUILD.vcxproj /p:cltoolexe=clang-cl" to build the project using clang-cl. However it might include wrong directory like C:\\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-01-29 Thread Nicholas Braden
Have you tried setting the toolset? The -T parameter can set the toolset. This sets the platform toolset property that you would normally set in Visual Studio. if Visual Studio lets you select the llvm platform toolset, so will CMake. On Fri, Jan 29, 2016 at 12:04 PM, Yi-Hong Lyu

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-01-29 Thread Cristian Adam
On 29-Jan-16 19:04, Yi-Hong Lyu wrote: Hello everyone, I am a newbie of CMake. I would like to use clang-cl with MSBuild on Windows. However it always use MSVC 19.0.23506.0 as the identified compiler even I defined CMAKE_C_COMPILER / CMAKE_CXX_COMPILER / CMAKE_C_COMPILER_FORCED /

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-01-29 Thread Bill Hoffman
On 1/29/2016 1:04 PM, Yi-Hong Lyu wrote: Hello everyone, I am a newbie of CMake. I would like to use clang-cl with MSBuild on Windows. However it always use MSVC 19.0.23506.0 as the identified compiler even I defined CMAKE_C_COMPILER / CMAKE_CXX_COMPILER / CMAKE_C_COMPILER_FORCED /

[CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-01-29 Thread Yi-Hong Lyu
Hello everyone, I am a newbie of CMake. I would like to use clang-cl with MSBuild on Windows. However it always use MSVC 19.0.23506.0 as the identified compiler even I defined CMAKE_C_COMPILER / CMAKE_CXX_COMPILER / CMAKE_C_COMPILER_FORCED / CMAKE_CXX_COMPILER_FORCED: $ cmake