<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Lucida Console";
        panose-1:2 11 6 9 4 5 4 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.gmailquote
        {mso-style-name:gmail_quote;}
span.e
        {mso-style-name:e;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Lucida Console"'>We do something like this:<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Lucida Console"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt;text-autospace:none'><span
style='font-size:11.0pt;font-family:"Lucida Console"'>MACRO(ADD_CONFIGURATION
CONFIGURATION PLATFORM COMPILER_FLAGS LINKER_FLAGS)<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt;text-autospace:none'><span
style='font-size:11.0pt;font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp; # The configuration
label we use internally the platform appended on it.<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt;text-autospace:none'><span
style='font-size:11.0pt;font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp; SET( CONFIG_LABEL
&quot;${CONFIGURATION}_${PLATFORM}&quot; )<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt;text-autospace:none'><span
style='font-size:11.0pt;font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp; SET(
&quot;${CONFIG_LABEL}_PLATFORM&quot; ${PLATFORM} CACHE STRING &quot;&quot;
FORCE )<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt;text-autospace:none'><span
style='font-size:11.0pt;font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp; DEBUG_MESSAGE(GEO_VERBOSE_CONFIG<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &quot;Adding configuration
${CONFIG_LABEL} for platform ${PLATFORM}&quot;)<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt;text-autospace:none'><span
style='font-size:11.0pt;font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp;
DEBUG_MESSAGE(GEO_VERBOSE_CONFIG &quot;\tcompiler flags
${COMPILER_FLAGS}&quot;)<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt;text-autospace:none'><span
style='font-size:11.0pt;font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp; # Add the
configuration to the list of configurations<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt;text-autospace:none'><span
style='font-size:11.0pt;font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp;
SET(CMAKE_CONFIGURATION_TYPES<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; ${CMAKE_CONFIGURATION_TYPES}
${CONFIG_LABEL}<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; CACHE INTERNAL &quot;&quot; FORCE<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt'><span style='font-size:11.0pt;
font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp; )<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt'><span style='font-size:11.0pt;
font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp; ... more stuff<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt;text-autospace:none'><span
style='font-size:11.0pt;font-family:"Lucida Console"'>ENDMACRO(ADD_CONFIGURATION)<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt;text-autospace:none'><span
style='font-size:11.0pt;font-family:"Lucida Console"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Lucida Console"'>I&#8217;ve
tried initialising it with <o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Lucida Console"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt;text-autospace:none'><span
style='font-size:11.0pt;font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp; # Add the
configuration to the list of configurations<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt;text-autospace:none'><span
style='font-size:11.0pt;font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp;
SET(CMAKE_CONFIGURATION_TYPES<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; ${CMAKE_CONFIGURATION_TYPES} &#8220;&#8221;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:11.0pt;
font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; CACHE INTERNAL &quot;&quot; FORCE<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:36.0pt'><span style='font-size:11.0pt;
font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp; )<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Lucida Console"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Lucida Console"'>but
that doesn&#8217;t remove the stock configurations, if they are already there.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Lucida Console"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Lucida Console"'>Joe<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Lucida Console"'>&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> David Cole [mailto:david.cole@kitware.com] <br>
<b>Sent:</b> 20 December 2007 15:20<br>
<b>To:</b> Josef Karthauser<br>
<b>Cc:</b> Torsten Martinsen; cmake@cmake.org<br>
<b>Subject:</b> Re: [CMake] MSVC turn off RelWithDebInfo and MinSizeRel<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I will see if I can find / figure out what I did to make
this work -- I know I've done it before to eliminate all but one config type...<o:p></o:p></p>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>How about this in the CMakeLists.txt file instead? (Force it
into the cache rather than using a simple set.)<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>SET(CMAKE_CONFIGURATION_TYPES &quot;Debug;Release&quot;
CACHE STRING &quot;limited configs&quot; FORCE)<br>
<br>
&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>Maybe?<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>David<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal><span class=gmailquote>On 12/20/07, <b>Josef Karthauser</b>
&lt;<a href="mailto:joe.karthauser@geomerics.com">joe.karthauser@geomerics.com </a>&gt;
wrote:</span><o:p></o:p></p>

<div>

<div>

<p><span style='font-size:11.0pt;color:#1F497D'>Yeah, that's a pain.&nbsp; I
recently submitted a bug fix which allows configurations other than these stock
four to be used, however sometimes these stock four get added in addition, and
sometimes they're not.&nbsp; I've not managed to determine where or why.</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>It's my understanding that the
MSVC configuration type stuff has a few too many assumptions in the code, and
is probably due a complete overhaul at some point.&nbsp; Maybe that's already
been done for the next major release?</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>Joe</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p><b><span lang=EN-US style='font-size:10.0pt'>From:</span></b><span
lang=EN-US style='font-size:10.0pt'> cmake-bounces+joe.karthauser=<a
href="mailto:geomerics.com@cmake.org" target="_blank"> geomerics.com@cmake.org</a>
[mailto:<a href="mailto:cmake-bounces+joe.karthauser=geomerics.com@cmake.org"
target="_blank">cmake-bounces+joe.karthauser=geomerics.com@cmake.org</a>] <b>On
Behalf Of </b>Torsten Martinsen<br>
<b>Sent:</b> 20 December 2007 08:11<br>
<b>To:</b> David Cole<br>
<b>Cc:</b> <a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a><br>
<b>Subject:</b> RE: [CMake] MSVC turn off RelWithDebInfo and MinSizeRel</span><o:p></o:p></p>

</div>

</div>

<div>

<p>&nbsp;<o:p></o:p></p>

<p><span style='font-size:10.0pt;color:blue'>Unfortunately, this does not work.
I just tried adding</span><o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p><span style='font-size:10.0pt;color:blue'>&nbsp;&nbsp;&nbsp;
SET(CMAKE_CONFIGURATION_TYPES &quot;Debug;RelWithDebInfo&quot;)</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;color:blue'>at the top of my CMakeLists.txt,
then deleted my build tree and ran cmake. The generated project files still
contain Debug, Release, MinSizeRel and RelWithDebInfo.</span><o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p><span style='font-size:10.0pt;color:blue'>-Torsten</span><o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'><span lang=EN-US>

<hr size=2 width="100%" align=center>

</span></div>

<p style='margin-bottom:12.0pt'><b><span lang=EN-US style='font-size:10.0pt'>From:</span></b><span
lang=EN-US style='font-size:10.0pt'> cmake-bounces+tma=<a
href="mailto:gatehouse.dk@cmake.org" target="_blank">gatehouse.dk@cmake.org</a>
[mailto:<a href="mailto:cmake-bounces+tma=gatehouse.dk@cmake.org"
target="_blank">cmake-bounces+tma=gatehouse.dk@cmake.org</a>] <b>On Behalf Of </b>David
Cole<br>
<b>Sent:</b> 20 December 2007 01:32<br>
<b>To:</b> Jesse Corrington<br>
<b>Cc:</b> <a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a><br>
<b>Subject:</b> Re: [CMake] MSVC turn off RelWithDebInfo and MinSizeRel</span><o:p></o:p></p>

<p style='margin-bottom:12.0pt'>SET(CMAKE_CONFIGURATION_TYPES
&quot;Debug;Release&quot;)<br>
<br>
in your CMakeLists.txt. (Or just edit that value in CMakeSetup to change it in
the cache.)<br>
<br>
If you do it with a simple set in the CMakeLists.txt then you will not see that
reflected in the CMakeSetup GUI, but it will be in effect at generation time
and you should end up with sln/vcproj files with just the two types. <br>
<br>
HTH,<br>
David<o:p></o:p></p>

<div>

<p>On 12/19/07, <b>Jesse Corrington</b> &lt;<a
href="mailto:jesse.corrington@gmail.com" target="_blank">jesse.corrington@gmail.com</a>&gt;
wrote: <o:p></o:p></p>

<p>Is there anyway to have CMake not generate these two configurations, and
just generate the standard release and debug configurations instead? Thanks. <o:p></o:p></p>

</div>

<p>&nbsp;<o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=2 width="100%" align=center>

</div>

<p><span style='font-size:7.5pt;color:gray'>This e-mail and any files sent with
it contain information that may be privileged or confidential and is the
property of the GateHouse Group. This information is intended solely for the
person to whom it is addressed. If you are not the intended recipient, you are
not authorized to read, print, retain, copy, disseminate, distribute, or use
the message or any part thereof. If you have received this e-mail in error,
please notify the sender immediately, and delete all copies of this message. In
accordance with GateHouse Security Policy, e-mails sent or received may be
monitored.</span><o:p></o:p></p>

</div>

</div>

</div>

</div>

</div>

<p class=MsoNormal><br>
&nbsp;<o:p></o:p></p>

</div>

</div>

</div>

</body>

</html>