Problem with forced response files (Ninja)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Problem with forced response files (Ninja)

Gößwein Matthias / eeas gmbh


I'm currently trying to add support for the Tasking Compiler to CMake. Actually i  have a working solution (without response files), but if i want to use response files, then i have a problem. The Tasking compiler expects "-f" as a flag instead of "@".

I use the ninja generator and have set the following variables:


But during Compiler Detection phase i get an error because CMake uses still the "@" as a flog for the response files:

-- Check for working C compiler: D:/Projects/Tools/Tasking/01_00_00/ctc/bin/cctc.exe -- broken
CMake Error at D:/Projects/Tools/CMake/03_01_00/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "D:/Projects/Tools/Tasking/01_00_00/ctc/bin/cctc.exe" is not
  able to compile a simple test program.

  It fails with the following output:

   Change Dir: D:/Projects/Software/Projects/EC23MA/Trunk/EC23MA/Gen/CMakeFiles/CMakeTmp

  Run Build Command:"D:/Projects/Tools/Ninja/01_00_00/ninja.exe" "cmTC_31d94"

  [1/2] Building C object CMakeFiles\cmTC_31d94.dir\testCCompiler.c.o

  FAILED: CMakeFiles/cmTC_31d94.dir/testCCompiler.c.o

  cmd.exe /C "D:\Projects\Tools\Tasking\01_00_00\ctc\bin\cctc.exe -c
  testCCompiler.c @CMakeFiles\cmTC_31d94.dir\testCCompiler.c.o.rsp
  -Wc--make-target=CMakeFiles\cmTC_31d94.dir\testCCompiler.c.o -o
  CMakeFiles\cmTC_31d94.dir\testCCompiler.c.o &&
  -DOBJECT="CMakeFiles\cmTC_31d94.dir\testCCompiler.c.o" -P

  cctc E205: don't know what to do with

  ninja: build stopped: subcommand failed.

Is there any other variable which i should set or is this a CMake issue?

Best regards,
Matthias Goesswein

Matthias Goesswein


Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: