[Scons-users] Found dependency cycle

Bill Deegan bill at baddogconsulting.com
Mon Mar 20 12:08:16 EDT 2017


Another user has asked basically the same exact question on this mailing
list.
It's the previous email to this one.

See this thread:
https://pairlist4.pair.net/pipermail/scons-users/2017-March/005733.html

On Mon, Mar 20, 2017 at 10:39 AM, Непомнящий Евгений <johnny at topazelectro.ru
> wrote:

> Hello
>
> I have file source.cpp, which #include generated file source.gen.h.
> source.gen.h generate by other tool on the basis of source.cpp
>
> source.cpp
> ----
>
> #include "source.gen.h"
>
> int main() { return 0; }
>
>
> SConstruct
> ----
>
> e = Environment()
> e.Command("source.gen.h", "source.cpp", Copy('$TARGET', '$SOURCE')) #
> "generator"
> e.Program("source.cpp")
>
>
>
> This code works fine in Scons 2.1, but Scons 2.5.1 produce error:
> scons: *** Found dependency cycle(s):
>   source.gen.h -> source.gen.h
>
> File "C:\Python27\Lib\site-packages\scons-2.5.1\SCons\Taskmaster.py",
> line 1043, in cleanup
>
> How do I get around this error?
>
> Thank you
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170320/0925a39b/attachment.html>


More information about the Scons-users mailing list