Re: [CMake] add_custom_command question

2011-10-21 Thread Łukasz Tasz
Hi all, with cmake 2.8.6 all my problems are solved, I'm can easily recreate/replicate custom_target. Thanks a lot! Best regards Lukasz -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and

Re: [CMake] add_custom_command question

2011-10-20 Thread Michael Hertling
On 10/20/2011 08:23 PM, Łukasz Tasz wrote: >> add_custom_target(TARGET generator >>COMMAND touch aaa.cxx >>COMMENT generate file >> ) >> >> add_custom_command(OUTPUT aaa.cxx >>COMMAND echo "command" >>DEPENDS generator bar >> This does

Re: [CMake] add_custom_command question

2011-10-20 Thread Łukasz Tasz
> add_custom_target(TARGET generator >COMMAND touch aaa.cxx >COMMENT generate file > ) > > add_custom_command(OUTPUT aaa.cxx >COMMAND echo "command" >DEPENDS generator bar > This does not work^^^ >

Re: [CMake] add_custom_command question

2011-10-20 Thread Łukasz Tasz
Hi Michael, Hi All Thanks a lot for answer, I tried something else, let's assume that we have some output, then we are registering target which is dependend on ouptut - registered target is responsible to provide output in a global scope. I have other cmake lists, in which I have some targets tha

Re: [CMake] add_custom_command question

2011-10-20 Thread Michael Hertling
On 10/20/2011 12:37 PM, Łukasz Tasz wrote: > Hi all, > > In my cmake project I have few commands that are creating outputs. > > But Unfortunately those outputs are used across many directories. > > So my question is what's the real scope of output_command? only > Current_CmakeLists.txt? Yes, a

[CMake] add_custom_command question

2011-10-20 Thread Łukasz Tasz
Hi all, In my cmake project I have few commands that are creating outputs. But Unfortunately those outputs are used across many directories. So my question is what's the real scope of output_command? only Current_CmakeLists.txt? Can I somehow make make_target that is creating output registered i

Re: [CMake] ADD_CUSTOM_COMMAND-question

2008-03-05 Thread Steven Van Ingelgem
Thanks a lot David! Seems my 2003 didn't include the path variable, but at home my 2005 does. Thanks again On 05/03/2008, David Cole <[EMAIL PROTECTED]> wrote: > In the Visual Studio IDE, go to "Tools > Options > Projects and Solutions > > VC++ Directories" and inspect the value for Win32 Execu

Re: [CMake] ADD_CUSTOM_COMMAND-question

2008-03-05 Thread David Cole
In the Visual Studio IDE, go to "Tools > Options > Projects and Solutions > VC++ Directories" and inspect the value for Win32 Executable Files directories. You can add "$(PATH)" as the last entry in that box, or explicitly add the directory to perl.exe. In VS 2005 and later, MS puts $(PATH) there

Re: [CMake] ADD_CUSTOM_COMMAND-question

2008-03-05 Thread Steven Van Ingelgem
The problem is that I don't call perl directly... It is being called from within the openssl sources... I can find perl perfectly with the FindPerl script, but somehow the add custom command doesn't take the PATH variable into account when running... On 05/03/2008, Bill Hoffman <[EMAIL PROTECTE

Re: [CMake] ADD_CUSTOM_COMMAND-question

2008-03-05 Thread Bill Hoffman
Steven Van Ingelgem wrote: Hi, I am under Windows (VS2003). If I run "ADD_CUSTOM_COMMAND", does the "COMMAND" run like a "cmd" environment? In particular looking at the PATH variable? I ask this because the output of my script indicates it cannot find "perl", which is perfectly accessible bec

[CMake] ADD_CUSTOM_COMMAND-question

2008-03-05 Thread Steven Van Ingelgem
Hi, I am under Windows (VS2003). If I run "ADD_CUSTOM_COMMAND", does the "COMMAND" run like a "cmd" environment? In particular looking at the PATH variable? I ask this because the output of my script indicates it cannot find "perl", which is perfectly accessible because I added it to the enviro