MantisBT - CMake | ||||||||||
| View Issue Details | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||
| 0006945 | CMake | CMake | public | 2008-05-02 12:03 | 2008-08-19 15:43 | |||||
| Reporter | Dan Thill | |||||||||
| Assigned To | ||||||||||
| Priority | normal | Severity | major | Reproducibility | always | |||||
| Status | closed | Resolution | fixed | |||||||
| Platform | OS | OS Version | ||||||||
| Product Version | CMake-2-6 | |||||||||
| Target Version | Fixed in Version | |||||||||
| Summary | 0006945: cmake -E chdir processes arguments improperly when arguments match cmake args | |||||||||
| Description | Commandline arguments which match those of cmake are not passed to the program. Instead, they are intercepted by cmake and the program is not run. $ cmake -E chdir / ls --help cmake version 2.4-patch 8 Usage cmake [options] <path-to-source> cmake [options] <path-to-existing-build> Command-Line Options -C <initial-cache> = Pre-load a script to populate the cache. -D <var>:<type>=<value> = Create a cmake cache entry. -G <generator-name> = Specify a makefile generator. [snip] Verified on Linux and Windows, on both 2.4.3 and 2.4.8. | |||||||||
| Steps To Reproduce | ||||||||||
| Additional Information | This was discovered when I was attempting to add a test case which tested my executable's --help output, e.g.: ADD_TEST( HelpTest ${CMAKE_COMMAND} -E chdir Prog.exe --help ) WORKAROUND: Write a CMake script (containing EXECUTE_PROCESS) and test that script instead. ADD_TEST( HelpTest ${CMAKE_COMMAND} -S HelpTest.cmake ) | |||||||||
| Tags | No tags attached. | |||||||||
| Relationships |
| |||||||||
| Attached Files | ||||||||||
| Issue History | ||||||||||
| Date Modified | Username | Field | Change | |||||||
| 2008-05-02 12:03 | Dan Thill | New Issue | ||||||||
| 2008-05-02 12:16 | Dan Thill | Note Added: 0011675 | ||||||||
| 2008-08-19 15:43 | Bill Hoffman | Status | new => closed | |||||||
| 2008-08-19 15:43 | Bill Hoffman | Note Added: 0013081 | ||||||||
| 2008-08-19 15:43 | Bill Hoffman | Resolution | open => fixed | |||||||
| 2009-11-24 20:14 | Bill Hoffman | Relationship added | related to 0009965 | |||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||