View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0013007 | CMake | CMake | public | 2012-03-01 17:29 | 2016-06-10 14:31 | ||||
Reporter | Daniel Richard G. | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | feature | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake 2.8.7 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0013007: "cmake -E compare_files" needs an option to ignore line endings | ||||||||
Description | "cmake -E compare_files" is currently the equivalent of cmp(1), in that it checks whether or not two files are bit-for-bit identical. If you compare two text files that are the same except for one having Unix/LF line endings and the other having DOS/CRLF line endings, compare_files will indicate that they are different. This behavior is not helpful when the files are unavoidably going to differ in EOL convention. In my case, I have a CMake framework to build a text-processing tool that is native to Unix, but is also usable in Windows. There is a test suite, in which the tool generates textual output, and the output is compared to a reference file. On Windows, the tool necessarily outputs CRLF text. But the test-reference files are necessarily LF, because they were produced on Unix, where the tool is maintained. Currently, I am using CONFIGURE_FILE() as an improvised way of converting the tool-output file from CRLF to LF so that compare_files can work as intended, and the test suite gives meaningful results. However, this won't work if the file happens to contain "${VAR}" and "@VAR@" constructs, and while COPYONLY would be safer, it is not compatible with the necessary NEWLINE_STYLE directive. What is really needed is an option to compare_files that tells it to compare the two files as text, disregarding any differences in the line-ending convention. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0030409) David Cole (manager) 2012-08-11 21:35 |
Sending old, never assigned issues to the backlog. (The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...) If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^] It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing. |
(0041994) Kitware Robot (administrator) 2016-06-10 14:28 |
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 |
2012-03-01 17:29 | Daniel Richard G. | New Issue | |
2012-08-11 21:35 | David Cole | Status | new => backlog |
2012-08-11 21:35 | David Cole | Note Added: 0030409 | |
2016-06-10 14:28 | Kitware Robot | Note Added: 0041994 | |
2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved |
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |