Re: [CMake] function and raise_scope commands

2007-12-03 Thread Brandon Van Every
On Dec 3, 2007 2:07 PM, Ken Martin <[EMAIL PROTECTED]> wrote: > I checked into CVS two new commands; function and raise_scope (well three > commands if you count endfunction) This is cool. I wish I could test it, but I can't really do that in any robust way until it's available in a production CM

Re: [CMake] function and raise_scope commands

2007-12-03 Thread Bill Hoffman
Brandon Van Every wrote: On Dec 3, 2007 2:07 PM, Ken Martin <[EMAIL PROTECTED]> wrote: I checked into CVS two new commands; function and raise_scope (well three commands if you count endfunction) This is cool. I wish I could test it, but I can't really do that in any robust way until it's ava

Re: [CMake] function and raise_scope commands

2007-12-06 Thread Miguel A. Figueroa-Villanueva
On Dec 3, 2007 3:07 PM, Ken Martin wrote: > I checked into CVS two new commands; function and raise_scope (well three > commands if you count endfunction) First of all: THANKS!! Great feature to have! Now, I have been using it and exploring its functionality and have come across to things, which

Re: [CMake] function and raise_scope commands

2007-12-07 Thread Filipe Sousa
Miguel A. Figueroa-Villanueva wrote: > On Dec 7, 2007 6:42 PM, Filipe Sousa wrote: > > Try the following: > > function(foo x) > set(${x} 1) # changed here > raise_scope(${x}) > endfunction() > > foo(y) > message(STATUS "y=${y}") > > I have this working. What gives me

Re: [CMake] function and raise_scope commands

2007-12-07 Thread Filipe Sousa
Ken Martin wrote: > I checked into CVS two new commands; function and raise_scope (well three > commands if you count endfunction) I'm having troubles with functions, the next example gives me an exception function(foo x) set(x 1) raise_scope(${x}) endfunction() foo(y) message(STATUS "y=${y}")

Re: [CMake] function and raise_scope commands

2007-12-07 Thread Miguel A. Figueroa-Villanueva
On Dec 7, 2007 6:42 PM, Filipe Sousa wrote: > Ken Martin wrote: > > I checked into CVS two new commands; function and raise_scope (well three > > commands if you count endfunction) > > I'm having troubles with functions, the next example gives me an exception > > function(foo x) > set(x 1) > rais

RE: [CMake] function and raise_scope commands

2007-12-10 Thread Ken Martin
Thanks for the information. Both these issues I suspect are fairly simple bugs and will be fixed. Thanks Ken > 1. CMake crashes if I use the same variable name as the argument and > raise the scope later. That is, for the following function: > > function(track_find_variable cache_variable is_ch

Re: [CMake] function and raise_scope commands

2007-12-23 Thread Miguel A. Figueroa-Villanueva
On Dec 10, 2007 5:14 PM, Ken Martin wrote: > Thanks for the information. Both these issues I suspect are fairly simple > bugs and will be fixed. Hello Ken, I saw that some changes to the function command where applied to cmake cvs, so I tested these and my report about the current state of things

RE: [CMake] function and raise_scope commands

2007-12-28 Thread Ken Martin
> > > 1. CMake crashes if I use the same variable name as the argument and > > > raise the scope later. That is, for the following function: > > > > > > function(track_find_variable cache_variable is_changed) > > > raise_scope(${is_changed}) > > > endfunction(track_find_variable) > > > > > > I ca

Re: [CMake] function and raise_scope commands

2007-12-28 Thread Miguel A. Figueroa-Villanueva
On Dec 28, 2007 11:36 AM, Ken Martin wrote: > > > > 1. CMake crashes if I use the same variable name as the argument and > > > > raise the scope later. That is, for the following function: > Specifically > > Variable value > > is_changed is_changed > set(${is_changed} "s

Re: [CMake] function and raise_scope commands

2008-01-18 Thread Miguel A. Figueroa-Villanueva
On Dec 28, 2007 12:52 PM, Miguel A. Figueroa-Villanueva wrote: > On Dec 28, 2007 11:36 AM, Ken Martin wrote: > > > > > 1. CMake crashes if I use the same variable name as the argument and > > > > > raise the scope later. That is, for the following function: > > > > > Specifically > > > > Variable