Cmake does not support llvm-rc on windows
I am trying to get rid of all MSVC-related tools and it fails with rc
:
C:\Users\dark\test>cmake -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_LINKER=lld-link -G Ninja -DCMAKE_GENERATOR_RC=llvm-rc -DCMAKE_RC_COMPILER=llvm-rc .
-- The C compiler identification is Clang 7.0.1
-- The CXX compiler identification is Clang 7.0.1
-- Check for working C compiler: C:/Program Files/LLVM/bin/clang-cl.exe
-- Check for working C compiler: C:/Program Files/LLVM/bin/clang-cl.exe -- broken
CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"C:/Program Files/LLVM/bin/clang-cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/dark/test/CMakeFiles/CMakeTmp
Run Build Command:"C:/ProgramData/chocolatey/bin/ninja.exe" "cmTC_935b2"
[1/2] Building C object CMakeFiles\cmTC_935b2.dir\testCCompiler.c.obj
[2/2] Linking C executable cmTC_935b2.exe
FAILED: cmTC_935b2.exe
cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_935b2.dir --manifests -- C:\PROGRA~1\LLVM\bin\lld-link.exe /nologo CMakeFiles\cmTC_935b2.dir\testCCompiler.c.obj /out:cmTC_935b2.exe /implib:cmTC_935b2.lib /pdb:cmTC_935b2.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: command "rc /foCMakeFiles\cmTC_935b2.dir/manifest.res CMakeFiles\cmTC_935b2.dir/manifest.rc" failed (exit code 0) with the following output:
The system cannot find the file specified
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
-- Configuring incomplete, errors occurred!
See also "C:/Users/dark/test/CMakeFiles/CMakeOutput.log".
See also "C:/Users/dark/test/CMakeFiles/CMakeError.log".
Cmake seem to completely ignore the command line
Edited by Craig Scott