View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002495CMakeCMakepublic2005-11-15 15:102007-02-20 17:01
ReporterDavid Cole 
Assigned ToSystem Admin 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002495: cmd line 'cmake -G "Bogus Generator" ..' gives unuseful output
Descriptionfrom the command line:
cmake -G "Bogus Generator" ..
gives you the following output instead of prompting you with the valid possible generator values...

    CMake Error: Could not create named generator Bogus Generator
    CMake Error: cmake version 2.2-patch 2
    Usage: cmake -E [command] [arguments ...]
    Available commands:
      chdir dir cmd [args]... - run command in a given directory
      copy file destination - copy file to destination (either file or directory)
      copy_if_different in-file out-file - copy file if input has changed
      copy_directory source destination - copy directory 'source' content to directory 'destination'
      echo [string]... - displays arguments as text
      remove file1 file2 ... - remove the file(s)
      time command [args] ... - run command and return elapsed time
      write_regv key value - write registry value
      delete_regv key - delete registry value
      comspec - on windows 9x use this for RunCommand

Shouldn't it give you the list of valid generators in this situation just like --help does?
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0003243)
David Cole (manager)
2005-11-15 15:11

related to 2494
(0004344)
sshock (reporter)
2006-06-26 11:23

Please fix. This cost me an hour of trying to figure out what the heck I was doing wrong.
(0004348)
sshock (reporter)
2006-06-26 11:53

At the very least, you could update the man page to say

"Possible generator names are specified in the Generators section ___shown when you run cmake --help___".

At least that way you would know where the "Generators section" can be found. Thanks.
(0005207)
Brad King (manager)
2006-10-04 19:18

Bug 0003844 references this bug. It is a central command line parsing request.
(0006495)
Bill Hoffman (manager)
2007-02-20 17:01

 ../../../CMake-vs-gmake/bin/cmake . -G asdfsdf
CMake Error: Could not create named generator asdfsdf

Seems to be fixed now.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team