<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
That'll work. You're missing the variable type from your set statement.
You have to give all three of "CACHE TYPE DOCSTRING" if you want to set
a cache variable.<br>
<br>
Use this instead and the rest should be ok:<br>
SET ( PROJ_README "${PROJECT_SOURCE_DIR}/README.txt"
<br>
CACHE <b><font color="#ff0000">STRING</font></b> "Where to find a
project's README file"
<br>
&nbsp; )
<br>
<br>
<br>
David<br>
<br>
Chris Green wrote:
<blockquote cite="midPine.LNX.4.61.0507201510550.9705@leroy.fnal.gov"
 type="cite">Hi,
  <br>
  <br>
I'm pretty much expecting to be told, "Can't get there from here", but
I'd like to set a variable in a top-level project in terms of another
variable which may change. I'd then like to refer to that variable at a
lower level and have it expanded at the time of evaluation.
  <br>
  <br>
For example:
  <br>
  <br>
PROJECT ( TOP )
  <br>
SET ( PROJ_README "${PROJECT_SOURCE_DIR}/README.txt"
  <br>
CACHE "Where to find a project's README file"
  <br>
&nbsp; )
  <br>
SUBDIRS ( BOTTOM )
  <br>
  <br>
Followed by:
  <br>
  <br>
PROJECT ( BOTTOM )
  <br>
MESSAGE ( STATUS "PROJ_README = ${PROJ_README}" )
  <br>
  <br>
Is this even possible?
  <br>
  <br>
Thanks,
  <br>
Chris.
  <br>
  <br>
</blockquote>
</body>
</html>