Re: [CMake] write file if different?

2013-06-03 Thread Matthew Woehlke
On 2013-05-28 16:07, Matthew Woehlke wrote: Is there a built-in way to write a string to a file (a la FILE(WRITE)) that will only write the file if the content would be different? (Or does FILE(WRITE) already work this way despite no obvious hint in the documentation that it does?) Right now I

Re: [CMake] write file if different?

2013-05-30 Thread j s
- From: j s j.s4...@gmail.com To: Michael Wild them...@gmail.com Cc: CMake mailing list cmake@cmake.org Subject: [CMake] write file if different? Date: Wed, May 29, 2013 20:44 On Wed, May 29, 2013 at 2:32 AM, Michael Wild them...@gmail.com wrote: On 28.05.2013 22:07, Matthew Woehlke wrote

Re: [CMake] write file if different?

2013-05-30 Thread J Decker
a much better way to go than trying to do everything in CMake. On Wed, May 29, 2013 at 11:14 PM, them...@gmail.com them...@gmail.com wrote: - Reply message - From: j s j.s4...@gmail.com To: Michael Wild them...@gmail.com Cc: CMake mailing list cmake@cmake.org Subject: [CMake] write file

Re: [CMake] write file if different?

2013-05-30 Thread Matthew Woehlke
On 2013-05-30 12:11, j s wrote: On Wed, May 29, 2013 at 11:14 PM, them...@gmail.com wrote: j s wrote: On 28.05.2013 22:07, Matthew Woehlke wrote: Is there a built-in way to write a string to a file (a la FILE(WRITE)) that will only write the file if the content would be different? (Or does

Re: [CMake] write file if different?

2013-05-30 Thread j s
On Thu, May 30, 2013 at 12:36 PM, Matthew Woehlke matthew.woeh...@kitware.com wrote: On 2013-05-30 12:11, j s wrote: On Wed, May 29, 2013 at 11:14 PM, them...@gmail.com wrote: j s wrote: On 28.05.2013 22:07, Matthew Woehlke wrote: Is there a built-in way to write a string to a file (a la

Re: [CMake] write file if different?

2013-05-30 Thread J Decker
On Tue, May 28, 2013 at 1:07 PM, Matthew Woehlke matthew.woeh...@kitware.com wrote: Is there a built-in way to write a string to a file (a la FILE(WRITE)) that will only write the file if the content would be different? (Or does FILE(WRITE) already work this way despite no obvious hint in the

Re: [CMake] write file if different?

2013-05-30 Thread Matthew Woehlke
On 2013-05-30 17:24, J Decker wrote: On Tue, May 28, 2013 at 1:07 PM, Matthew Woehlke matthew.woeh...@kitware.com wrote: Is there a built-in way to write a string to a file (a la FILE(WRITE)) that will only write the file if the content would be different? (Or does FILE(WRITE) already work this

Re: [CMake] write file if different?

2013-05-30 Thread Matthew Woehlke
On 2013-05-29 03:32, Michael Wild wrote: On 28.05.2013 22:07, Matthew Woehlke wrote: Is there a built-in way to write a string to a file (a la FILE(WRITE)) that will only write the file if the content would be different? (Or does FILE(WRITE) already work this way despite no obvious hint in the

Re: [CMake] write file if different?

2013-05-29 Thread j s
On Wed, May 29, 2013 at 2:32 AM, Michael Wild them...@gmail.com wrote: On 28.05.2013 22:07, Matthew Woehlke wrote: Is there a built-in way to write a string to a file (a la FILE(WRITE)) that will only write the file if the content would be different? (Or does FILE(WRITE) already work this

Re: [CMake] write file if different?

2013-05-29 Thread them...@gmail.com
- Reply message - From: j s j.s4...@gmail.com To: Michael Wild them...@gmail.com Cc: CMake mailing list cmake@cmake.org Subject: [CMake] write file if different? Date: Wed, May 29, 2013 20:44 On Wed, May 29, 2013 at 2:32 AM, Michael Wild them...@gmail.com wrote: On 28.05.2013 22:07

[CMake] write file if different?

2013-05-28 Thread Matthew Woehlke
Is there a built-in way to write a string to a file (a la FILE(WRITE)) that will only write the file if the content would be different? (Or does FILE(WRITE) already work this way despite no obvious hint in the documentation that it does?) Right now I am writing to a temporary file and running