On 2013-01-07 21:43-0500 David Cole wrote:
Escape the $ in the original, so it's still there in the generated install
script.
i.e., \$ENV{DESTDIR} should yield $ENV{DESTDIR} in the install script.
CMake is *correctly* replacing the ENV reference with its current value at
CMake configure time. But you want it to happen at install time.
Thanks very much for that rapid solution for the problem which is
going to be a big help in getting these releases out the door!
I guess my personal issue is despite years of cmake experience I keep
tripping over escape issues like this one. The example I copied (see
http://osdir.com/ml/programming.tools.cmake.user/2006-10/msg00237.html)
from someone who is usually right about cmake ( :-) ) had the same escape issue,
and I propagated it without enough thought.
I would really like to reduce the number of times I stumble over
escape issues so are the escape rules documented anywhere
(including the above important distinction between cmake time
and install time)?
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers