<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)">
<!--[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:"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;}
@font-face
        {font-family:Verdana;
        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.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.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-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Let's stress that the source and binary directories of this
build are readable and writable to Joe's account.&nbsp; It is NOT a file
permission issue for any files in our build tree.&nbsp; If CMake or Visual
Studio generate files outside of our source or binary tree all bets are off of
course.<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>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Given that Microsoft heavily recommends running Visual Studio
2005 as Administrator in both Vista and Windows 7 - it nags you each time you
launch if you don't - and it also fails for Joe on non-CMake-generated
solutions, I suspect the real problem is a bug in Visual Studio 2005 on Windows
7.<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>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Has anyone on this list successfully built projects using Visual
Studio 2005 on Windows 7 without marking CMake and Visual Studio to run as
Administrator?&nbsp; Presumably what happens if CMake is not marked to run as
Administrator, when it attempts the try-compile stage, it does not honor the
&quot;run as Administrator&quot; marking on devenv or vcbuild or whatever
process it uses, and then Visual Studio 2005 does naughty things and fails.<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>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Given that we have a workaround we don't need to follow up any
further, but if this is a general problem for anyone on Windows 7 there should
probably be a bug report on it, right?<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>

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

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Applied Research Associates, Inc.<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-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"'>
cmake-bounces@cmake.org [mailto:cmake-bounces@cmake.org] <b>On Behalf Of </b>David
Cole<br>
<b>Sent:</b> Wednesday, January 06, 2010 10:34 AM<br>
<b>To:</b> Joe L<br>
<b>Cc:</b> cmake@cmake.org; Bill Hoffman<br>
<b>Subject:</b> Re: [CMake] Compiler Test Failing on Windows 7<o:p></o:p></span></p>

</div>

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

<p class=MsoNormal>So it actually *was* a permissions issue after all...<o:p></o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal>On Wed, Jan 6, 2010 at 8:56 AM, Joe L &lt;<a
href="mailto:superist_joe@yahoo.com">superist_joe@yahoo.com</a>&gt; wrote:<o:p></o:p></p>

<div>

<div>

<div>

<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>Trying to
open the solution file (trycompile generated) didn't work by double clicking on
it, so I searched about that and found this:<br>
<a
href="http://www.pluralsight.com/community/blogs/matt/archive/2007/05/21/47446.aspx"
target="_blank">http://www.pluralsight.com/community/blogs/matt/archive/2007/05/21/47446.aspx</a><br>
<br>
this comment is the one that solved that for me:<br>
&quot;It works when you set both <br>
Launcher (C:\Program Files\Common Files\Microsoft Shared\MSEnv\VSLauncher.exe)
and IDE(C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe) to
run as administrator. <br>
(Right click .exe and select Propertries -&gt; Compatibility, and choose Run as
Administrator) <br>
<br>
Hope this helps. &quot;<br>
<br>
After doing this I thought to set cmake as 'run as admin', and that seemed to
get everything to generate as it should.<br>
<br>
Thanks,<br>
Joe<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>

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

</span></div>

<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"'> Bill Hoffman &lt;<a
href="mailto:bill.hoffman@kitware.com" target="_blank">bill.hoffman@kitware.com</a>&gt;<br>
<b>To:</b> David Cole &lt;<a href="mailto:david.cole@kitware.com"
target="_blank">david.cole@kitware.com</a>&gt;<br>
<b>Cc:</b> <a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a><br>
<b>Sent:</b> Tue, January 5, 2010 3:01:47 PM<o:p></o:p></span></p>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><br>
<b>Subject:</b> Re: [CMake] Compiler Test Failing on Windows 7<o:p></o:p></span></p>

</div>

<div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><br>
David Cole wrote:<br>
&gt; On Tue, Jan 5, 2010 at 12:38 PM, Hendrik Sattler &lt;<a
href="mailto:post@hendrik-sattler.de" target="_blank">post@hendrik-sattler.de</a>
&lt;mailto:<a href="mailto:post@hendrik-sattler.de" target="_blank">post@hendrik-sattler.de</a>&gt;&gt;
wrote:<br>
&gt; <br>
&gt;&nbsp; &nbsp; Am Dienstag 05 Januar 2010 14:09:00 schrieb Joe L:<br>
&gt;&nbsp; &nbsp; &nbsp; &gt;&nbsp; C:/Program Files (x86)/CMake<br>
&gt;&nbsp; &nbsp; &nbsp; &gt;&nbsp;
2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:62<br>
&gt;&nbsp; &nbsp; &nbsp; &gt;&nbsp; (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:3 (PROJECT)<br>
&gt; <br>
&gt;&nbsp; &nbsp; You might want to avoid instal cmake in a path with spaces.<br>
&gt;&nbsp; &nbsp; I install software with unix layout to &quot;C:\local&quot;<br>
&gt; <br>
&gt; <br>
&gt; Nonsense. CMake works fine in a directory that has spaces in its name. We
wouldn't make the default installation directory on Windows have spaces in it
if it did have problems...<br>
&gt; <br>
&gt; There must be something else going on here.<br>
&gt; <br>
&gt; <br>
<br>
This has nothing to do with copy file not working.&nbsp; The copy file is not
working because no executable was generated for some reason.&nbsp; You should
look in CMakeError.log and CMakeOutput.log.&nbsp; If that fails to show
anything, then run cmake --debug-trycompile, then go into the CMakeFiles
directory and run the build tool by hand and figure out why it is not producing
executable files.<br>
<br>
-Bill<br>
<br>
-- Bill Hoffman<br>
Kitware, Inc.<br>
28 Corporate Drive<br>
Clifton Park, NY 12065<br>
<a href="mailto:bill.hoffman@kitware.com" target="_blank">bill.hoffman@kitware.com</a><br>
<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>
518 881-4905 (Direct)<br>
518 371-3971 x105<br>
Fax (518) 371-4573<o:p></o:p></span></p>

</div>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>_______________________________________________<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></span></p>

</div>

</div>

</div>

</div>

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

</div>

</div>

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

</div>

</div>

</body>

</html>