<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="&#1;" 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)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        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;}
span.gd
        {mso-style-name:gd;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Arial","sans-serif";
        color:#1F497D;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#1F497D'>Hello
Everyone<o:p></o:p></span></p>

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

<p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#1F497D'><a
href="http://www.cmake.org/Bug/view.php?id=12936">http://www.cmake.org/Bug/view.php?id=12936</a><o:p></o:p></span></p>

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

<p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#1F497D'>I
have uploaded a &#8220;repro&#8221; case here. &nbsp;Should be reproducible in a matter of 1
minute.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#1F497D'>I
am interested to see if any of you could reproduce the bug.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#1F497D'>Windows
7 64-bit is what I use here to reproduce the issue with CMAKE 2.8.7<o:p></o:p></span></p>

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

<p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#1F497D'>I
have not uploaded the workaround though. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#1F497D'>The
workaround is very simple. One just needs to manually invoke &#8220;cmake&#8221; through a
custom configure and build script.<o:p></o:p></span></p>

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

<p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#1F497D'>Thanks,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#1F497D'>Best
Regards,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#1F497D'>Sarnath<o:p></o:p></span></p>

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

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

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Jean-Christophe
Fillion-Robin [mailto:jchris.fillionr@kitware.com] <br>
<b>Sent:</b> Friday, February 03, 2012 9:42 PM<br>
<b>To:</b> Sarnath K - ERS, HCLTech<br>
<b>Cc:</b> John Drescher; cmake@cmake.org<br>
<b>Subject:</b> Re: [CMake] CMAKE 2.8.5 - CMAKE_GENERATOR Bug?<o:p></o:p></span></p>

</div>

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

<p class=MsoNormal style='margin-bottom:12.0pt'>Hi <span class=gd>Sarnath, </span><br>
<br>
<span class=gd>Could you create an issue in the tracked where you will describe
the problem, the work around and also attach the configure.bat file ?</span><br>
<br>
<span class=gd>I am sure that will be helpful in solving the problem.</span><br>
<br>
<span class=gd>If there is already an issue .. could you mention the
corresponding # number ?</span><br>
<br>
<span class=gd>Thanks for your help</span><br>
<span class=gd>Jc</span><o:p></o:p></p>

<div>

<p class=MsoNormal>On Fri, Feb 3, 2012 at 7:34 AM, Sarnath K - ERS, HCLTech
&lt;<a href="mailto:k_sarnath@hcl.com">k_sarnath@hcl.com</a>&gt; wrote:<o:p></o:p></p>

<p class=MsoNormal>Hello,<br>
<br>
I managed to find a workaround.<br>
<br>
Instead of allowing CMAKE to work out the configuration and build of the
&nbsp;external CMAKE project,<br>
I just wrote a batch file (configure.bat) which would invoke &quot;cmake&quot;
internally to generate the makefiles.<br>
After that, I could use &quot;cmake --build&quot; command to build the external
project.<br>
<br>
With these workarounds, I was able to generate a 32-bit tool alongside 64-bit
executables and 64-bit libraries.<br>
<br>
Sigh of relief!! But CMAKE authors would want to look into this issue,<o:p></o:p></p>

<div>

<p class=MsoNormal><br>
Thanks,<br>
Best Regards,<br>
Sarnath<br>
<br>
-----Original Message-----<o:p></o:p></p>

</div>

<div>

<div>

<p class=MsoNormal>From: <a href="mailto:cmake-bounces@cmake.org">cmake-bounces@cmake.org</a>
[mailto:<a href="mailto:cmake-bounces@cmake.org">cmake-bounces@cmake.org</a>]
On Behalf Of Sarnath K - ERS, HCLTech<br>
Sent: Friday, February 03, 2012 10:48 AM<br>
To: John Drescher<br>
Cc: <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>
Subject: Re: [CMake] CMAKE 2.8.5 - CMAKE_GENERATOR Bug?<br>
<br>
Hello John,<br>
<br>
I can +vely see this behavior with the latest 2.8.7 version as well.<br>
I am using a windows 64-bit machine with Visual studio 2008 installed on it.<br>
<br>
This is how I use Externa Project Add command:<br>
&quot;<br>
&nbsp; &nbsp;include(ExternalProject)<br>
&nbsp; &nbsp;ExternalProject_Add(<br>
&nbsp; &nbsp; &nbsp; &nbsp;gen<br>
&nbsp; &nbsp; &nbsp; &nbsp;CMAKE_GENERATOR &quot;Visual Studio 9 2008&quot;<br>
&nbsp; &nbsp; &nbsp; &nbsp;URL file://${CMAKE_SOURCE_DIR}/src/tools/gen<br>
&nbsp; &nbsp; &nbsp; &nbsp;INSTALL_COMMAND &quot;&quot;<br>
&nbsp; &nbsp;)<br>
&quot;<br>
<br>
The CMakeLists.txt hosting this ExternalProject_Add is generated using
&quot;NMake Makefiles&quot; - which uses the default 64-bit build
configuration.<br>
A verbose Makefile generation nails the issue.<br>
The &quot;gen&quot; project is generated as &lt;cmake &quot;-G Visual Studio 9
2008&quot;&gt; which screws things up.<br>
<br>
Can somebody please help me with this?<br>
<br>
Thanks,<br>
Best Regards,<br>
Sarnath<br>
-----Original Message-----<br>
From: John Drescher [mailto:<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>]<br>
Sent: Thursday, February 02, 2012 11:12 PM<br>
To: Sarnath K - ERS, HCLTech<br>
Cc: <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>
Subject: Re: [CMake] CMAKE 2.8.5 - CMAKE_GENERATOR Bug?<br>
<br>
On Thu, Feb 2, 2012 at 12:33 PM, Sarnath K - ERS, HCLTech<br>
&lt;<a href="mailto:k_sarnath@hcl.com">k_sarnath@hcl.com</a>&gt; wrote:<br>
&gt; All,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I was trying to use the external project add feature to add a 32-bit VC++<br>
&gt; project on a 64-bit parent build system.<br>
&gt;<br>
&gt; However, I ran into problems while compiling the 32-bit project.<br>
&gt;<br>
&gt; &quot;devenv&quot; used to complain &quot;invalid solution
configuration&quot;<br>
&gt;<br>
&gt; I tried to explicitly set &quot;CMAKE_BUILD_TYPE&quot; using -D option as
well as in<br>
&gt; the CMakeLists.txt.<br>
&gt; Nothing changed.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; However, when I enabled &quot;CMAKE_VERBOSE_MAKEFILE&quot;, I found that
&quot;CMAKE&quot; was<br>
&gt; &quot;not&quot; passing the -G option correctly.<br>
&gt;<br>
&gt; Instead of passing &lt;cmake -G &quot;Visual Studio 9 2008&quot;&gt;,
cmake was actually<br>
&gt; configuring the project as &lt;cmake &quot;-G Visual Studio 9
2008&quot;&gt;<br>
&gt;<br>
&gt; (Note that -G is inside the double-quote)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; When I isolate the build-step and build it manually using the correct<br>
&gt; syntax, everything works flawlessly.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Specifying the generator via &quot;CMAKE_ARGS&quot; helps me compile. But
CMAKE still<br>
&gt; appends the faulty -G syntax and<br>
&gt;<br>
&gt; hence is not producing the intended results for me.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; If this is indeed a bug, can some one tell me:<br>
&gt;<br>
&gt; 1. &nbsp; &nbsp;What is the temporary workaround for this?<br>
&gt;<br>
&gt; 2. &nbsp; &nbsp;If at all fixed, how long will it take the build to come
out?<br>
&gt;<br>
<br>
I am not seeing this breakage. However you are 2 versions behind in cmake.<br>
<br>
John<br>
<br>
::DISCLAIMER::<br>
-----------------------------------------------------------------------------------------------------------------------<br>
<br>
The contents of this e-mail and any attachment(s) are confidential and intended
for the named recipient(s) only.<br>
It shall not attach any liability on the originator or HCL or its affiliates.
Any views or opinions presented in<br>
this email are solely those of the author and may not necessarily reflect the
opinions of HCL or its affiliates.<br>
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of<br>
this message without the prior written consent of the author of this e-mail is
strictly prohibited. If you have<br>
received this email in error please delete it and notify the sender
immediately. Before opening any mail and<br>
attachments please check them for viruses and defect.<br>
<br>
-----------------------------------------------------------------------------------------------------------------------<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a
href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a
href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a
href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><o:p></o:p></p>

</div>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
<br clear=all>
<br>
-- <br>
+1 919 869 8849<o:p></o:p></p>

</div>

</body>

</html>