View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013743CMakeCMakepublic2012-11-26 19:002013-05-06 09:32
ReporterMathias Gaunard 
Assigned ToPeter Kuemmel 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 2.8.9 
Target VersionFixed in VersionCMake 2.8.11 
Summary0013743: Ninja does not work with CTest launchers
DescriptionWhen 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
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0031721)
Mathias Gaunard (reporter)
2012-11-26 19:18

I'd gladly contribute a fix, but I'm not sure what the best way to deal with this would be.
Any pointer welcome.
(0031773)
Mathias Gaunard (reporter)
2012-11-29 21:50

Suggested fix here: https://github.com/Kitware/CMake/pull/28 [^]
(0031825)
Peter Kuemmel (developer)
2012-12-04 07:40

patch is in next
(0032982)
Robert Maynard (manager)
2013-05-06 09:32

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-11-26 19:00 Mathias Gaunard New Issue
2012-11-26 19:18 Mathias Gaunard Note Added: 0031721
2012-11-29 21:50 Mathias Gaunard Note Added: 0031773
2012-12-01 02:05 Peter Kuemmel Assigned To => Peter Kuemmel
2012-12-01 02:05 Peter Kuemmel Status new => assigned
2012-12-04 07:40 Peter Kuemmel Note Added: 0031825
2012-12-04 07:40 Peter Kuemmel Status assigned => resolved
2012-12-04 07:40 Peter Kuemmel Fixed in Version => CMake 2.8.11
2012-12-04 07:40 Peter Kuemmel Resolution open => fixed
2013-05-06 09:32 Robert Maynard Note Added: 0032982
2013-05-06 09:32 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team