[Cmake] feature request - separate user and system cmake cache files
Tony Pan
tpan at bmi . osu . edu
Tue, 11 Mar 2003 14:09:38 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_0027_01C2E7D7.DAA55B50
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi, Ken,
I tried the solutions you suggested. The -C and -D approaches do not
work for me in that the values get overridden during the cmake configure
process.
What I am trying to do is basically to script a build, and Fred's
approach (with a minimalistic CMakeCache.txt file) works. I am aware
this is not optimal, but for now, it suffices. Thanks for your help.
Tony
-----Original Message-----
From: Ken Martin [mailto:ken . martin at kitware . com]
Sent: Monday, March 10, 2003 4:05 PM
To: tpan at bmi . osu . edu; cmake at public . kitware . com
Subject: RE: [Cmake] feature request - separate user and system cmake
cache files
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_0027_01C2E7D7.DAA55B50
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">
<TITLE>Message</TITLE>
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<STYLE>@font-face {
font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV>
<DIV><SPAN class=3D108293215-11032003><FONT face=3DArial color=3D#0000ff =
size=3D2>Hi,=20
Ken,</FONT></SPAN></DIV>
<DIV><SPAN class=3D108293215-11032003><FONT face=3DArial color=3D#0000ff =
size=3D2>I=20
tried the solutions you suggested. The -C and -D approaches do not =
work=20
for me in that the values get overridden during the cmake configure=20
process.</FONT></SPAN></DIV>
<DIV><SPAN class=3D108293215-11032003><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D108293215-11032003><FONT face=3DArial color=3D#0000ff =
size=3D2>What I=20
am trying to do is basically to script a build, and Fred's=20
approach (with a minimalistic CMakeCache.txt file)=20
works. I am aware this is not optimal, but for now, it =
suffices. Thanks for your help.</FONT></SPAN></DIV>
<DIV><SPAN class=3D108293215-11032003><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D108293215-11032003><FONT face=3DArial color=3D#0000ff =
size=3D2>Tony</FONT> </SPAN></DIV></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> Ken =
Martin=20
[mailto:ken . martin at kitware . com] <BR><B>Sent:</B> Monday, March 10, =
2003 4:05=20
PM<BR><B>To:</B> tpan at bmi . osu . edu; =
cmake at public . kitware . com<BR><B>Subject:</B>=20
RE: [Cmake] feature request - separate user and system cmake cache=20
files<BR><BR></FONT></DIV>
<DIV class=3DSection1>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hey=20
Tony,</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"></SPAN></FONT> </P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">“cmake –CInitFile”=20
tells cmake to load a CMakeLists file prior to startup. Use that =
file to=20
set your common values. So something like “cmake =
–CTonysConfig.cmake”=20
would accomplish what you want. I believe the option is available on =
all the=20
GUI’s as well as from the command line.</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"></SPAN></FONT> </P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">For our =
nightlies we=20
use scripts that either do</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"></SPAN></FONT> </P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">cmake=20
–DVALUE=3DTYPE:SETTING =
–DVALUE2=3DTYPE:SETTING</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"></SPAN></FONT> </P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">or what =
Fred=20
suggested. We have a mixture of both. We really don’t want =
people editing the=20
cache directly for a number of reasons.</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"></SPAN></FONT> </P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">Thanks</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">Ken</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"></SPAN></FONT> </P>
<DIV=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: blue =
1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">
<P class=3DMsoNormal><FONT face=3DTahoma size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original=20
Message-----<BR><B><SPAN style=3D"FONT-WEIGHT: bold">From:</SPAN></B>=20
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=20
Pan<BR><B><SPAN style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B> =
</SPAN></FONT><FONT=20
face=3DTahoma size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Tahoma">Monday,=20
March 10, 2003</SPAN></FONT><FONT face=3DTahoma size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> </SPAN></FONT><FONT =
face=3DTahoma=20
size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">2:35=20
PM</SPAN></FONT><FONT face=3DTahoma size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"><BR><B><SPAN=20
style=3D"FONT-WEIGHT: bold">To:</SPAN></B> =
cmake at public . kitware . com<BR><B><SPAN=20
style=3D"FONT-WEIGHT: bold">Subject:</SPAN></B> [Cmake] feature =
request -=20
separate user and system cmake cache files</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt"></SPAN></FONT> </P>
<DIV>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I apologize if this has =
already=20
been brought up. I think it would be helpful if the =
CMakeCache.txt file=20
can be split into a user file and a system file. =
The motivation for=20
the request is that I have been setting up several build environments, =
and=20
typing in the same stuff over and over is getting old very =
quickly. It'd=20
be nice if I can just copy the user config file, make a few =
modifications, and=20
then rerun cmake to regenerate the system configs. This would be =
useful=20
for setting up testing environments. In addition, having =
separate cache=20
files would make updating src code to new versions easier and less =
prone to=20
dirty cache, as I'd only need to blow away the system=20
cache.</SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">Thanks.</SPAN></FONT></P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">Tony</SPAN></FONT> </P></DIV></DIV></DIV></BLOCKQUOTE></BODY>=
</HTML>
------=_NextPart_000_0027_01C2E7D7.DAA55B50--