MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014861 | CMake | CMake | public | 2014-04-03 12:12 | 2016-06-10 14:31 |
Reporter | irwin | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | Both Linux and Windows | OS | OS Version | ||
Product Version | CMake 2.8.12.2 | ||||
Target Version | Fixed in Version | ||||
Summary | 0014861: cmake consumes command-line arguments it does not understand without a WARNING message | ||||
Description | The commands cmake -whatever .. or cmake whatever .. currently work fine with no warning messages at all about the "-whatever" and "whatever" arguments that it ignores. I believe I ran into this issue years ago so it is probably a long-standing bug that has long been tolerated, but from recent rather bizarre experience as a result of this bug that I just learned about, I think this bug should be addressed. What happened is one of our knowlegeable PLplot users could not get the cmake command-line to work properly on a Windows platform. After a lot of head-scratching and nobody getting anywhere with this, it turned out he was taking notes using Microsoft Word, and cut and pasted from that to the command-line. Unfortunately, Microsoft word had quietly inserted a non-ascii hyphen in that command-line so all the -D options did not have the correct hyphen and were quietly ignored because of this CMake bug! Instead, cmake should have given loud warnings that it could not understand parts of his command line. | ||||
Steps To Reproduce | Create a CMakeLists.txt file consisting of the following two lines: cmake_minimum_required(VERSION 2.8.12.2 FATAL_ERROR) project(test_cmake NONE) Then create an empty build subdirectory, cd to it, and try either one of the above cmake commands (or try specifying some -D options with non-ascii hyphens). The (bad) result is there are no warning messages about the parts of the command line that cmake could not understand. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2014-04-03 12:12 | irwin | New Issue | |||
2014-04-03 12:50 | Brad King | Note Added: 0035632 | |||
2014-04-03 12:50 | Brad King | Status | new => backlog | ||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042527 | |||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|