MantisBT - CMake
View Issue Details
0013660CMakeCMakepublic2012-11-07 19:572014-06-02 08:37
Dave Abrahams 
Peter Kuemmel 
highmajoralways
closedno change required 
CMake 2.8.9 
CMake 3.0 
0013660: Ninja: "--" doesn't work as advertised
Title says all
c:\Users\dave\ryppl-test\function-dev\build>cmake --version
cmake --version
cmake version 2.8.9

c:\Users\dave\ryppl-test\function-dev\build>cmake --build . -- -v
cmake --build . -- -v
Unknown argument -v
Usage: cmake --build <dir> [options] [-- [native-options]]
Options:
  <dir> = Project binary directory to be built.
  --target <tgt> = Build <tgt> instead of default targets.
  --config <cfg> = For multi-configuration tools, choose <cfg>.
  --clean-first = Build target 'clean' first, then build.
                   (To clean only, use --target 'clean'.)
  --use-stderr = Don't merge stdout/stderr.
  -- = Pass remaining options to the native tool.
No tags attached.
Issue History
2012-11-07 19:57Dave AbrahamsNew Issue
2012-11-08 08:19Brad KingNote Added: 0031483
2012-11-08 08:20Brad KingNote Added: 0031484
2012-11-08 08:28Dave AbrahamsNote Added: 0031485
2012-11-08 08:29Dave AbrahamsNote Added: 0031486
2012-11-08 08:47Brad KingNote Added: 0031488
2012-11-08 08:49Brad KingNote Added: 0031489
2012-11-08 09:11Eric NOULARDNote Added: 0031490
2012-11-08 09:38Brad KingNote Added: 0031492
2012-11-08 09:43Bill HoffmanNote Added: 0031493
2013-02-09 07:01Peter KuemmelSummary"--" doesn't work as advertised => Ninja: "--" doesn't work as advertised
2013-11-26 05:57Peter KuemmelAssigned To => Peter Kuemmel
2013-11-26 05:57Peter KuemmelStatusnew => assigned
2013-11-26 05:59Peter KuemmelNote Added: 0034563
2013-11-26 05:59Peter KuemmelStatusassigned => resolved
2013-11-26 05:59Peter KuemmelFixed in Version => CMake 3.0
2013-11-26 05:59Peter KuemmelResolutionopen => no change required
2014-06-02 08:37Robert MaynardNote Added: 0036035
2014-06-02 08:37Robert MaynardStatusresolved => closed

Notes
(0031483)
Brad King   
2012-11-08 08:19   
$ cmake --version
cmake version 2.8.10.1
$ cmake --build . -- -v
GNU Make 3.81
...
(0031484)
Brad King   
2012-11-08 08:20   
What generator are you using?
(0031485)
Dave Abrahams   
2012-11-08 08:28   
Ninja
(0031486)
Dave Abrahams   
2012-11-08 08:29   
I'm on 2.8.9, BTW
(0031488)
Brad King   
2012-11-08 08:47   
$ cmake --version
cmake version 2.8.10.1
$ cmake --build . -- -v
ninja: no work to do.
(0031489)
Brad King   
2012-11-08 08:49   
$ cmake --version
cmake version 2.8.9
$ cmake --build . -- -v
ninja: no work to do.
(0031490)
Eric NOULARD   
2012-11-08 09:11   
Just in case you did not already noticed.
Dave seems to be on Windows:
c:\Users\dave\ryppl-test\function-dev\build>cmake --version
cmake version 2.8.9

while you Brad seems to be testing on some unix:
$ cmake --version
cmake version 2.8.9

could be possible that command line arg handling is quite different ?
(0031492)
Brad King   
2012-11-08 09:38   
>cmake --version
cmake version 2.8.9
>cmake --build . -- -v
Microsoft (R) Microsoft Visual Studio 2012 Version 11.0.50727.1.
...
Invalid Command Line. Unknown Switch : v.
....

This shows that the switch makes it through to the native build system.
(0031493)
Bill Hoffman   
2012-11-08 09:43   
I can not reproduce with ninja on windows and cmake 2.8.9

c:\Users\hoffman\Work\My Builds\cmake-ninja>cmake --version
cmake version 2.8.9

c:\Users\hoffman\Work\My Builds\cmake-ninja>cmake --build . -- -v
ninja: no work to do.

c:\Users\hoffman\Work\My Builds\cmake-ninja>cmake --build . -- --version
git

c:\Users\hoffman\Work\My Builds\cmake-ninja>
(0034563)
Peter Kuemmel   
2013-11-26 05:59   
Linux:
...$ cmake --version && cmake --build . -- --version
cmake version 2.8.12.20131103-gdefbc
1.4.0.git

Windows:
...>cmake --version && cmake --build . -- --version
cmake version 2.8.12.20131012-g8f40
1.4.0.git
(0036035)
Robert Maynard   
2014-06-02 08:37   
Closing resolved issues that have not been updated in more than 4 months.