[CMake] Set variable value based on generated files

Hariharan hariharan022 at gmail.com
Tue Jun 1 10:23:44 EDT 2010


First off, I apologize if this is a very newbie-level question.
I need to set the value of a variable based on based on generated files,
using the "file" command. Something like:
file(GLOB varFoo "*.cpp")

Here the cpp files are generated, so the value of varFoo comes up as empty
when the build runs the first time. Is there any way to add a dependency on
the file generation step to the "file" command?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100601/d70a11ac/attachment.htm>


More information about the CMake mailing list