kdebindings, generator, LD_LIBRARY_PATH
Yury G. Kudryashov
urkud at ya.ru
Sat Oct 31 21:27:31 CET 2009
On Saturday 31 October 2009 20:45:16 you wrote:
> On Friday 30 October 2009, Yury G. Kudryashov wrote:
> > Hi!
> > if( UNIX )
> > # Generator library is used during compilation. If some environment
> > not # have previous kdebindings installed, will fail, then we need add
> > local path
> > set( ENV{LD_LIBRARY_PATH} ${CMAKE_CURRENT_BINARY_DIR}/generator/bin )
> > endif( UNIX )
>
> If you set(ENV{FOO} bar) in a CMakeLists.txt, this sets the env.var FOO at
> the moment when this command is executed, i.e. at cmake-time. This means
> it won't be set later at build time (when the makefiles are executed).
Yes, I've read about this before sending e-mail.
> You may file a feature request to support an ENVIRONMENT argument so that
> it is possible to set env.vars for the executed process.
>
> What's going wrong without this patch ?
The generator fails to load plugin BUILD_DIR/generator/bin/generator_smoke.so
at build (make) time. It uses QLibrary lib("generator_smoke"); lib.load().
> So I assume that the patch actually does nothing at all, it neither fixes
> or breaks something.
Yes, this patch does nothing.
--
Yury G. Kudryashov,
mailto: urkud.urkud at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20091031/6c592a83/attachment.sig
More information about the Kde-buildsystem
mailing list