RE: [CMake] Writing a list variable to file

2006-03-01 Thread Ian . Appru
Ah - was missing the quotes round CONTENTS variable thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brad King Sent: 01 March 2006 14:42 To: Appru, Ian Cc: cmake@cmake.org Subject: Re: [CMake] Writing a list variable to file [EMAIL PROTECTED

Re: [CMake] Writing a list variable to file

2006-03-01 Thread Brad King
[EMAIL PROTECTED] wrote: Hi Brad 1) works well - thanks the MESSAGE cmd won't print it which made me doubt it was working 2) doesn't work since the ; seps are removed before the regular expression is applied STRING(REGEX REPLACE ";" "\n" CONTENTS "${CONTENTS}") -Brad ___

RE: [CMake] Writing a list variable to file

2006-03-01 Thread Ian . Appru
6 14:13 To: Appru, Ian Cc: cmake@cmake.org Subject: Re: [CMake] Writing a list variable to file [EMAIL PROTECTED] wrote: > Is there a recommended way of writing a variable containing a list to > a file - so that each ; sep item ends up on a different line? There are several approaches.

Re: [CMake] Writing a list variable to file

2006-03-01 Thread Brad King
[EMAIL PROTECTED] wrote: Is there a recommended way of writing a variable containing a list to a file - so that each ; sep item ends up on a different line? There are several approaches. Here are two: 1.) Build the contents of the variable with newlines instead of semicolons, or transform th