[CMake] Delayed variable expansion?

Chris Green chissg at comcast.net
Thu Jul 21 07:32:54 EDT 2005


On Wed, 20 Jul 2005, David Cole wrote:

> Ah... by "delayed" you mean expand a variable within a variable when the 
> outer variable is dereferenced. Sorry - didn't get that from your first 
> question. I don't think that's possible, but you could write a one line 
> include script like this:

Thanks for this. I'd been led to believe by something I'd (mis-)read that 
my previous attempt would work, and I've been trying to avoid polluting 
client package CMakeLists.txt files with too much boiler plate. Oh well, 
it's not too much of an imposition since it's only what users have been 
familiar with in raw Make.

Thanks for the help,
Chris.

-- 
Chris Green, MiniBooNE / LANL. Email greenc at fnal.gov
Tel: (630) 840-2167. Fax: (630) 840-3867


More information about the CMake mailing list