[CMake] cmake -E compare_files - end of line character
Olivier Pierard
olivier.pierard at cenaero.be
Wed Sep 15 04:40:31 EDT 2010
Dear all,
For several testcases validations, I use 'cmake -E compare_files'
command on a result file against a reference file. Problem is that
result file might be generated on several different platforms while
reference file is the same for all platforms. Unfortunately, there is
no option in cmake -E compare_files to ignore end of line characters on
the contrary to diff, winmerge,... The current solution is to call an
'home-made' unix2dos C++ function or call a configure_file() command to
set correctly eol accoreding to the platform for the reference file so
that compare_files gives the correct answer.
Is there a way to avoid this 'stupid' solution ? Is it useful to submit
a development request for this feature ?
Thanks for your help,
Olivier
More information about the CMake
mailing list