<div dir="ltr">On Tue, Sep 30, 2008 at 3:45 PM, Jonas Bähr <span dir="ltr"><<a href="mailto:jonas.baehr@web.de">jonas.baehr@web.de</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I'm using a macro [1] iterating over a list of source files and setting a COMPILE_FLAGS property. The problem is that there are some files in the list which are generated (Qt moc files, produces by QT_WRAP_CPP) which do not exist at cmake time. The SET_SOURCE_FILE_PROPERTIES command however, terminates cmake with an error on the generated file, saying that he can't find the source file. Obviously, it's generated at build time.<br>
Is this a bug or am I missing something? The original CMakeList.txt can be found at [2]</blockquote><div>I don't know whether it help, but you can look at GENERATED source file property. That is you should first add source file to target, and next set it's "generated" property to true. This can tell CMake to don't look for this file during dependency scanning.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
I'm using cmake 2.4.8 on gentoo linux.<br>
<br>
[1] <a href="http://playerstage.svn.sourceforge.net/viewvc/playerstage/code/" target="_blank">http://playerstage.svn.sourceforge.net/viewvc/playerstage/code/</a>player/trunk/cmake/UsePlayerC%2B%2B.cmake?revision=6514&view=markup<br>
[2] <a href="http://jonas-baehr.de/%7Ejonas/CMakeLists.txt" target="_blank">http://jonas-baehr.de/~jonas/CMakeLists.txt</a><br>
<br>
bye,<br>
Jonas<br>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>