Re: [CMake] Setting environment variables

2010-09-14 Thread Gerhard Stengel
Hi Johny, I've experienced the same problem and unfortunately, I think there's no way to set them permanently. The reason seems to be that cmake invokes subshells for most of the commands, so the change of the environment variable only happens in the subshell and never reaches the parent. I wo

Re: [CMake] custom target isn't rebuilt if depending on another custom target

2010-09-14 Thread Gerhard Stengel
Hello Michael, thanks, it sheds some light on the matter, but I'm not happy as it is, see comments below. regards Gerhard ... > > > > If I create Demo.tar from a clean project, everything's fine. However, > > the rebuilt isn't performed completely, that is if I touch Demo1.in, > > just Demo1.o

[CMake] custom target isn't rebuilt if depending on another custom target

2010-09-13 Thread Gerhard Stengel
Hi, I have a strange problem with custom targets and their dependencies. I do as follows: 1) create a file 1 and add it to a custom target 1 2) create a file 2 and add it to a custom target 2 3) create a 3rd file by packing #1 and #2 together 4) the 3rd file is added to a custom target which dep