[Scons-users] Found dependency cycle

Непомнящий Евгений johnny at topazelectro.ru
Mon Mar 20 10:39:00 EDT 2017


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


More information about the Scons-users mailing list