[Scons-users] Qt tools can't find generated headers using VariantDir
Dirk Bächle
tshortik at gmx.de
Sat Feb 23 06:25:44 EST 2013
Just as a short addendum, you'll run into the same problem with a basic
CPP project as follows:
SConstruct:
env = Environment()
env.VariantDir('bld','.',duplicate=0)
env.Program('bld/main', Glob('*.cpp'))
main.cpp:
#include "foo.h"
int main(void)
{
return 0;
}
bld/foo.h:
#ifndef FOO_H
#define FOO_H
#endif
Again, you have to add
env.Append(CPPPATH=['bld'])
or simply remove the 'duplicate=0'.
Dirk
More information about the Scons-users
mailing list