MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0003570 | CMake | CMake | public | 2006-08-01 18:29 | 2007-06-28 08:50 |
| Reporter | Brandon Van Every | ||||
| Assigned To | Brad King | ||||
| Priority | low | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0003570: cmake -E echo doesn't handle apostrophes | ||||
| Description | Brandon J. Van Every wrote: > > Using CMake 2.4.2. Here's my mighty CMakeLists.txt: > > > > ADD_CUSTOM_TARGET(test > > COMMAND ${CMAKE_COMMAND} -E echo "It's difficult to handle apostrophes." > > ) > > > > I used CCMake under Cygwin to generate the Makefile. It dies thus: > > > > Brandon J. Van Every@kahlo ~/echo > > $ make test > > /bin/sh: -c: line 0: unexpected EOF while looking for matching `'' > > /bin/sh: -c: line 1: syntax error: unexpected end of file > > make[3]: *** [test] Error 2 > > make[2]: *** [CMakeFiles/test.dir/all] Error 2 > > make[1]: *** [CMakeFiles/test.dir/rule] Error 2 > > make: *** [test] Error 2 This is not cmake -E, but the Makefile generator. It is not properly escaping the single quote when it writes the argument to the Makefile build rule. There are actually a few situations when the generators do not properly escape everything. Please submit a bug report. Thanks, -Brad | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||