[CMake] Use of $$ in filenames

Scott MacVicar macvicar at facebook.com
Mon Mar 1 18:01:36 EST 2010


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?

Cheers,
Scott


More information about the CMake mailing list