View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014964 | CMake | CMake | public | 2014-06-09 10:33 | 2016-06-10 14:31 | ||||
Reporter | Linus | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | Apple | OS | OSX | OS Version | 10.9 | ||||
Product Version | CMake 2.8.12.2 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0014964: Command line scanning is bad with spaces | ||||||||
Description | If the -D or -C options are used with a space between the flag and the argument after the path to the project, cmake will interpret the argument to the flag as being the intended source directory. | ||||||||
Steps To Reproduce | cmake . -D OPTION=VALUE # verbatim, run anywhere cmake . -C initial-script # idem | ||||||||
Additional Information | Works fine with -DOPTION=VALUE or -Cinitial-script or if the options are placed (with spaces) before the build directory. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0036135) Rolf Eike Beer (developer) 2014-06-09 10:36 |
This works fine for me, especially if I follow the correct syntax and specify the path to the source directory last. |
(0036136) Linus (reporter) 2014-06-09 10:48 |
I am aware that the correct syntax is with the source directory last, but I think that placing options afterwards should either always work or never work, because working only without a space is a rather odd quirk. It's also not particularly obvious that the source directory has to be the last argument. |
(0036487) Linus (reporter) 2014-07-29 04:53 |
Bump -- I still think it would be good if CMake were less obtuse about this -- perhaps *consistently* outputting an error message if there's anything else after the source directory, or if the behaviour were at least clearly documented. |
(0036489) Brad King (manager) 2014-07-29 09:45 |
Moving to backlog because no one is working on it. The command-line argument handling needs a non-trivial cleanup anyway to do things like complain about unrecognized options. This issue is just one of symptoms. |
(0042562) Kitware Robot (administrator) 2016-06-10 14:29 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2014-06-09 10:33 | Linus | New Issue | |
2014-06-09 10:36 | Rolf Eike Beer | Note Added: 0036135 | |
2014-06-09 10:48 | Linus | Note Added: 0036136 | |
2014-07-29 04:53 | Linus | Note Added: 0036487 | |
2014-07-29 09:45 | Brad King | Note Added: 0036489 | |
2014-07-29 09:45 | Brad King | Status | new => backlog |
2016-06-10 14:29 | Kitware Robot | Note Added: 0042562 | |
2016-06-10 14:29 | Kitware Robot | Status | backlog => resolved |
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |