[cmake-developers] Question related to Visual Studio 14 2015 [MyTarget]

2016-02-05 Thread Yi-Hong Lyu
Hello all, I am a cmake newbie. Now I have two compiler that target MyTarget. The first one is a modified cl.exe, and the other one is the clang-cl.exe. Because they don't target x86/x64, both headers/libraries are supposed not to be included/linked. Instead I just want to include/link

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-01-31 Thread Yi-Hong Lyu
t; llvm platform toolset, so will CMake. > > On Fri, Jan 29, 2016 at 12:04 PM, Yi-Hong Lyu <b95705...@ntu.edu.tw> > wrote: > > Hello everyone, > > > > I am a newbie of CMake. I would like to use clang-cl with MSBuild on > > Windows. However it always us

[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