[CMake] Writing a list variable to file

Brad King brad.king at kitware.com
Wed Mar 1 09:41:57 EST 2006


Ian.Appru at ubs.com 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


More information about the CMake mailing list