View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013660CMakeCMakepublic2012-11-07 19:572014-06-02 08:37
ReporterDave Abrahams 
Assigned ToPeter Kuemmel 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product VersionCMake 2.8.9 
Target VersionFixed in VersionCMake 3.0 
Summary0013660: Ninja: "--" doesn't work as advertised
DescriptionTitle says all
Steps To Reproducec:\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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0031483)
Brad King (manager)
2012-11-08 08:19

$ cmake --version
cmake version 2.8.10.1
$ cmake --build . -- -v
GNU Make 3.81
...
(0031484)
Brad King (manager)
2012-11-08 08:20

What generator are you using?
(0031485)
Dave Abrahams (reporter)
2012-11-08 08:28

Ninja
(0031486)
Dave Abrahams (reporter)
2012-11-08 08:29

I'm on 2.8.9, BTW
(0031488)
Brad King (manager)
2012-11-08 08:47

$ cmake --version
cmake version 2.8.10.1
$ cmake --build . -- -v
ninja: no work to do.
(0031489)
Brad King (manager)
2012-11-08 08:49

$ cmake --version
cmake version 2.8.9
$ cmake --build . -- -v
ninja: no work to do.
(0031490)
Eric NOULARD (developer)
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 (manager)
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 (manager)
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 (developer)
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 (manager)
2014-06-02 08:37

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

 Issue History
Date Modified Username Field Change
2012-11-07 19:57 Dave Abrahams New Issue
2012-11-08 08:19 Brad King Note Added: 0031483
2012-11-08 08:20 Brad King Note Added: 0031484
2012-11-08 08:28 Dave Abrahams Note Added: 0031485
2012-11-08 08:29 Dave Abrahams Note Added: 0031486
2012-11-08 08:47 Brad King Note Added: 0031488
2012-11-08 08:49 Brad King Note Added: 0031489
2012-11-08 09:11 Eric NOULARD Note Added: 0031490
2012-11-08 09:38 Brad King Note Added: 0031492
2012-11-08 09:43 Bill Hoffman Note Added: 0031493
2013-02-09 07:01 Peter Kuemmel Summary "--" doesn't work as advertised => Ninja: "--" doesn't work as advertised
2013-11-26 05:57 Peter Kuemmel Assigned To => Peter Kuemmel
2013-11-26 05:57 Peter Kuemmel Status new => assigned
2013-11-26 05:59 Peter Kuemmel Note Added: 0034563
2013-11-26 05:59 Peter Kuemmel Status assigned => resolved
2013-11-26 05:59 Peter Kuemmel Fixed in Version => CMake 3.0
2013-11-26 05:59 Peter Kuemmel Resolution open => no change required
2014-06-02 08:37 Robert Maynard Note Added: 0036035
2014-06-02 08:37 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team