[CMake] Use of $$ in filenames

Bill Hoffman bill.hoffman at kitware.com
Mon Mar 1 23:17:08 EST 2010


Scott MacVicar wrote:
> Hi,
> 
> With some auto-generated code we use $$ in filenames to avoid
collisions withe files of the same name, within dependency.make we get
some unexpected behaviour.
> 
> Line of interest: CMakeFiles/program.dir/php/scone.cpp.o:
> cls/sometestclass$$0.h
> With make $$ has a special meaning for secondary expansion and resolves it to $
> 
> If I manually edit the file and make it $$$$0 then it works as expected.
> 
> Should this be reported as a bug? Also is there a way to get around this for now?
> 
Yup, looks like a bug.

As for a work around, can you change your code generator to use _ 
instead of $?

-Bill


More information about the CMake mailing list