[CMake] Custom Commands and Environmnt Settings for PATH and LD_LIBRARY_PATH

Jörg Kreuzberger j.kreuzberger at procitec.de
Fri Apr 11 10:38:55 EDT 2014


ok, finaly got it working.
Thanks for your great support.

-----Ursprüngliche Nachricht-----
Von:	Nils Gladitz <nilsgladitz at gmail.com>
Gesendet:	Fr 11.04.2014 13:12
Betreff:	Re: AW: [CMake] Custom Commands and Environmnt Settings for PATH and LD_LIBRARY_PATH
An:	Jörg Kreuzberger <j.kreuzberger at procitec.de>; cmake at cmake.org; 
> On 04/11/2014 12:56 PM, Jörg Kreuzberger wrote:
> > ok, biggest hint here was the tip for $<TARGET_FILE:..>. This was new to me 
> (am new to cmake at all).
> > Thanks.
> >
> > My major problem is still passing the additonal PATH elements to the cmake 
> script, cause they will always expanded in an space seperated list.
> >
> > So if i add -DENV_PATH="${QT_LIBRARY_DIR};${INTELIPP_LIBRARY_DIR}"
> > and assign it to $ENV{PATH} in my cmake script, is will always remove the 
> semikolons
> 
> Try "-DENV_PATH=${QT_LIBRARY_DIR};${INTELIPP_LIBRARY_DIR}" (with the 
> quotes as-is) and the VERBATIM flag to add_custom_command().
> 
> Nils
> 
> 
>


More information about the CMake mailing list