[cmake-developers] [CMake 0013743]: Ninja does not work with CTest launchers

Mantis Bug Tracker mantis at public.kitware.com
Mon Nov 26 19:00:53 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13743 
====================================================================== 
Reported By:                Mathias Gaunard
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13743
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-11-26 19:00 EST
Last Modified:              2012-11-26 19:00 EST
====================================================================== 
Summary:                    Ninja does not work with CTest launchers
Description: 
When using CMake with CTEST_USE_LAUNCHERS, the RULE_LAUNCHER_COMPILE property is
set to a special command used for better integration with the CTest system.

While it works correctly with Ninja on most platforms (you'll need to change a
if generator is make to is generator is make or ninja in CTest.cmake), it
doesn't work with Visual Studio because of the cldeps stuff.

Indeed, what Ninja generates is the following:

"C:/Program Files (x86)/CMake 2.8/bin/cmcldeps.exe" CXX $in "$DEP_FILE" $out
"Note: including file: " "C:/Program Files (x86)/Microsoft Visual Studio
10.0/VC/bin/cl.exe" "C:/Program Files (x86)/CMake 2.8/bin/ctest.exe" --launch
--target-name project --build-dir C:\Users\mgaunard\build\project\src --output
$out --source $in --language CXX -- C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe  
/nologo $FLAGS  $DEFINES /TP /Fo$out /Fd$TARGET_PDB -c $in

This is obviously incorrect, it should be

"C:/Program Files (x86)/CMake 2.8/bin/ctest.exe" --launch --target-name project
--build-dir C:\Users\mgaunard\build\project\src --output $out --source $in
--language CXX -- "C:/Program Files (x86)/CMake 2.8/bin/cmcldeps.exe" CXX $in
"$DEP_FILE" $out "Note: including file: " "C:/Program Files (x86)/Microsoft
Visual Studio 10.0/VC/bin/cl.exe" C:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe   /nologo
$FLAGS  $DEFINES /TP /Fo$out /Fd$TARGET_PDB -c $in
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-11-26 19:00 Mathias GaunardNew Issue                                    
======================================================================




More information about the cmake-developers mailing list