[CMake] Passing values back from SUBDIRS
John Biddiscombe
jbiddiscombe at bluewin.ch
Wed Mar 23 17:57:45 EST 2005
Brad,
>> hmmm. There must be an easy way of doing this.
>
> This is not possible because subdirectory code always executes AFTER
> parent directory code. The SUBDIRS command is NOT processed inline. It
I had hoped there was a way around it.
> We are attempting to solve this problem for the next version of CMake to
> make subdirectories more inuitive.
Good news. I noticed another post with a similar subject. The way CMake
handles them now is very strange and I've never quite understood why.
As it happens, I have found a way of achieving what I want. using the file
write/append feature, but it's not a general solution as I need to "know" in
advance which subdir is first. If I know this (which I do since it's used by
all the others), then I can initialize the file in there and it eventually
works.
Thanks. (Are there any docs about outlining upcoming changes?)
JB
More information about the CMake
mailing list