[CMake] installation of properly line ended text files

Eric Noulard eric.noulard at gmail.com
Fri Aug 24 07:38:35 EDT 2007


2007/8/24, Dizzy <dizzy at roedu.net>:
> On Friday 24 August 2007 13:04:15 Jack Kelly wrote:
> > Dizzy wrote:
> >
> > You shouldn't have to do any escaping. Use
> >
> > CONFIGURE_FILE(${SOURCEFILE} ${DESTFILE} COPYONLY)
>
> Thanks for the hint. This should solve my existent problem but it's not a good
> solution in general as one may have variables that he wishes to have
> configure_file() replacing them and variables that he wishes not (ex. like in
> a Makefile escaped with a $$).

If you use @ONLY
@something@ var will be replaced whereas $SOMETHINGELSE
will not.

cmake --help-command CONFIGURE_FILE
for others details like ESCAPE_QUOTE and #cmakedefine things.


-- 
Erk


More information about the CMake mailing list