RE: [CMake] getting values from subdirs

2007-03-15 Thread Ken Martin
I believe the following will work. In the top CMakeLists file... set(myvar initial-value CACHE INTERNAL stored subdir values) add_subdirectory(subdir) message(${myvar}) Then in subdir set(myvar ${myvar} ${other-values-from-this-subdir} CACHE INTERNAL stored subdir values) Ken Ken Martin

Re: [CMake] getting values from subdirs

2007-03-15 Thread Luigi Calori
Ken Martin wrote: I believe the following will work. In the top CMakeLists file... set(myvar initial-value CACHE INTERNAL stored subdir values) add_subdirectory(subdir) message(${myvar}) Then in subdir set(myvar ${myvar} ${other-values-from-this-subdir} CACHE INTERNAL stored subdir

RE: [CMake] getting values from subdirs

2007-03-15 Thread Ken Martin
Martin PhD Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 -Original Message- From: Luigi Calori [mailto:[EMAIL PROTECTED] Sent: Thursday, March 15, 2007 12:36 PM To: Ken Martin; cmake@cmake.org Subject: Re: [CMake] getting values from subdirs Ken Martin wrote: I