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
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
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"
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
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