[Cmake] feature request - separate user and system cmake cache files
Ken Martin
ken . martin at kitware . com
Mon, 10 Mar 2003 16:04:58 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_000C_01C2E71E.CCD56F10
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Hey Tony,
"cmake -CInitFile" tells cmake to load a CMakeLists file prior to
startup. Use that file to set your common values. So something like
"cmake -CTonysConfig.cmake" would accomplish what you want. I believe
the option is available on all the GUI's as well as from the command
line.
For our nightlies we use scripts that either do
cmake -DVALUE=TYPE:SETTING -DVALUE2=TYPE:SETTING
or what Fred suggested. We have a mixture of both. We really don't want
people editing the cache directly for a number of reasons.
Thanks
Ken
-----Original Message-----
From: cmake-admin at public . kitware . com
[mailto:cmake-admin at public . kitware . com] On Behalf Of Tony Pan
Sent: Monday, March 10, 2003 2:35 PM
To: cmake at public . kitware . com
Subject: [Cmake] feature request - separate user and system cmake cache
files
I apologize if this has already been brought up. I think it would be
helpful if the CMakeCache.txt file can be split into a user file and a
system file. The motivation for the request is that I have been setting
up several build environments, and typing in the same stuff over and
over is getting old very quickly. It'd be nice if I can just copy the
user config file, make a few modifications, and then rerun cmake to
regenerate the system configs. This would be useful for setting up
testing environments. In addition, having separate cache files would
make updating src code to new versions easier and less prone to dirty
cache, as I'd only need to blow away the system cache.
Thanks.
Tony
------=_NextPart_000_000C_01C2E71E.CCD56F10
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">
<title>Message</title>
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Hey Tony,</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>“cmake =
–CInitFile” tells
cmake to load a CMakeLists file prior to startup. Use that file to set =
your
common values. So something like “cmake =
–CTonysConfig.cmake”
would accomplish what you want. I believe the option is available on all =
the
GUI’s as well as from the command line.</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>For our nightlies we use scripts =
that
either do</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>cmake –DVALUE=3DTYPE:SETTING =
–DVALUE2=3DTYPE:SETTING</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>or what Fred suggested. We have a =
mixture
of both. We really don’t want people editing the cache directly =
for a
number of reasons.</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Thanks</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Ken</span></font></p>
<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<div style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in =
0in 4.0pt'>
<p class=3DMsoNormal><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b>
cmake-admin at public . kitware . com [mailto:cmake-admin at public . kitware . com] =
<b><span
style=3D'font-weight:bold'>On Behalf Of </span></b>Tony Pan<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> </span></font><font =
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'>Monday, March
10, 2003</span></font><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma'> </span></font><font size=3D2 face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>2:35 =
PM</span></font><font size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'><br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
cmake at public . kitware . com<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [Cmake] feature =
request -
separate user and system cmake cache files</span></font></p>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> </span></font></p>
<div>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I apologize if this has already been brought =
up. I
think it would be helpful if the CMakeCache.txt file can be split into a =
user
file and a system file. The motivation for the request is =
that I
have been setting up several build environments, and typing in the same =
stuff
over and over is getting old very quickly. It'd be nice if I can =
just
copy the user config file, make a few modifications, and then rerun =
cmake to
regenerate the system configs. This would be useful for setting up
testing environments. In addition, having separate cache files =
would make
updating src code to new versions easier and less prone to dirty cache, =
as I'd
only need to blow away the system cache.</span></font></p>
</div>
<div>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> </span></font></p>
</div>
<div>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks.</span></font></p>
</div>
<div>
<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'> </span></font></p>
</div>
<div>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Tony</span></font> </p>
</div>
</div>
</div>
</body>
</html>
------=_NextPart_000_000C_01C2E71E.CCD56F10--