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

2014-04-21 Thread Matthew Woehlke
On 2014-04-11 05:32, Jörg Kreuzberger wrote: [stuff about environment and custom commands] So it would help to have a possiblity to have a custom command like this: add_custom_command( OUTPUT out COMMAND .. COMMAND .. ENVIRONMENT

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

2014-04-21 Thread David Cole
fyi... see also: https://github.com/Kitware/CMake/pull/31 http://public.kitware.com/Bug/view.php?id=5145 http://public.kitware.com/Bug/view.php?id=14306 http://public.kitware.com/Bug/view.php?id=10901 -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

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

2014-04-11 Thread Jörg Kreuzberger
Hi! Had an issue with cmake custom commands - was able to solve it after serveral hours. But i think this is realy an issue for an improvement I. What i wanted to do: I wanted to add a simple custom command add_custom_command( OUTPUT out COMMAND mycommand ... ) mycommand

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

2014-04-11 Thread Nils Gladitz
On 04/11/2014 11:32 AM, Jörg Kreuzberger wrote: After reading serveral threads i ended in this solution - create a batch/shell script for the command i want to start. This ensures path modifications are local. Creation is done via a configure_file step I would run a cmake script with

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

2014-04-11 Thread Jörg Kreuzberger
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

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

2014-04-11 Thread Nils Gladitz
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

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

2014-04-11 Thread Jörg Kreuzberger
ok, finaly got it working. Thanks for your great support. -Ursprüngliche Nachricht- Von:Nils Gladitz nilsglad...@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