[CMake] Problem using VS-compiled Clang as a C/C++ compiler.
Anton Yartsev
anton.yartsev at gmail.com
Thu Mar 17 21:19:35 EDT 2016
Finally resolved the issue. The problem was that RC.exe was not in my
%PATH%.
Thanks all for assistance!
> --------------------------------------------------- CMake output:
> -- The C compiler identification is Clang 3.7.1
> -- The CXX compiler identification is Clang 3.7.1
> -- Check for working C compiler using: Ninja
> -- Check for working C compiler using: Ninja -- broken
> CMake Error at C:/Program
> Files/CMake/share/cmake-3.5/Modules/CMakeTestCCompiler.cmake:61 (message):
> The C compiler "D:/-Work-/LLVM_3.7.1_win64/msbuild-bin/cl.exe" is
> not able
> to compile a simple test program.
>
> It fails with the following output:
>
> Change Dir:
> D:/-Work-/llvm-3.7.1.src/-CLANG-/ProjectDir/CMakeFiles/CMakeTmp
>
>
>
> Run Build Command:"C:/PROGRA~1/ninja/ninja.exe" "cmTC_6d431"
>
> [1/2] Building C object CMakeFiles\cmTC_6d431.dir\testCCompiler.c.obj
>
> [2/2] Linking C executable cmTC_6d431.exe
>
> FAILED: cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E
> vs_link_exe --intdir=CMakeFiles\cmTC_6d431.dir --manifests --
> C:\PROGRA~1\MICROS~2.0\VC\bin\link.exe /nologo
> CMakeFiles\cmTC_6d431.dir\testCCompiler.c.obj /out:cmTC_6d431.exe
> /implib:cmTC_6d431.lib /pdb:cmTC_6d431.pdb /version:0.0 /machine:x64
> /debug
> /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib
> winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib
> advapi32.lib && cd ."
>
> RC Pass 1 failed to run.
--
Anton
More information about the CMake
mailing list