CMake 2.3.6R11<br>VS 2005 (v. 8)<br>WinXP 64<br><br>I have a rather complicated project and when I first generate it the project looks something like this:<br><br><span style="font-family: courier new,monospace;"><?xml version="1.0" encoding</span><span style="color: rgb(51, 0, 51); background-color: rgb(255, 255, 51); font-family: courier new,monospace;"> = </span><span style="font-family: courier new,monospace;">"Windows-1252"?></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"><VisualStudioProject</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> ProjectType="Visual C++"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Version="8.00"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Name="rtu"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> ProjectGUID="{6618B84E-DA3B-4350-A6F0-4D6F5BAB69FD}"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> SccProjectName="Perforce Project"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> SccLocalPath="</span><span style="background-color: rgb(255, 255, 102); font-family: courier new,monospace;">c:/code/stuff/mysource</span><span style="font-family: courier new,monospace;">"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> SccProvider="MSSCCI:Perforce SCM"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Keyword="Win32Proj"</span><span style="background-color: rgb(255, 255, 102); font-family: courier new,monospace;">></span><br style="background-color: rgb(255, 255, 102); font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <Platforms></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <Platform</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Name="x64"</span><span style="background-color: rgb(255, 255, 102); font-family: courier new,monospace;">/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </Platforms></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <Configurations></span><br style="font-family: courier new,monospace;">
...<br><br>After I run a build the projects look something like this:<br><br><span style="font-family: courier new,monospace;"><?xml version="1.0" encoding</span><span style="background-color: rgb(255, 255, 102); font-family: courier new,monospace;">=</span><span style="font-family: courier new,monospace;">"Windows-1252"?></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"><VisualStudioProject</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> ProjectType="Visual C++"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Version="8.00"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Name="rtu"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> ProjectGUID="{6618B84E-DA3B-4350-A6F0-4D6F5BAB69FD}"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> SccProjectName="Perforce Project"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> SccLocalPath="</span><span style="background-color: rgb(255, 255, 102); font-family: courier new,monospace;">..\.</span><span style="font-family: courier new,monospace;"><span style="background-color: rgb(255, 255, 102);">.</span>"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> SccProvider="MSSCCI:Perforce SCM"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Keyword="Win32Proj"</span><br style="background-color: rgb(255, 255, 102); font-family: courier new,monospace;">
<span style="background-color: rgb(255, 255, 102); font-family: courier new,monospace;"> ></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <Platforms></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <Platform</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Name="x64"</span><br style="background-color: rgb(255, 255, 102); font-family: courier new,monospace;">
<span style="background-color: rgb(255, 255, 102); font-family: courier new,monospace;"> /></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </Platforms></span><br style="font-family: courier new,monospace;">
<span style="background-color: rgb(255, 255, 102); font-family: courier new,monospace;"> <ToolFiles></span><br style="background-color: rgb(255, 255, 102); font-family: courier new,monospace;"><span style="background-color: rgb(255, 255, 102); font-family: courier new,monospace;"> </ToolFiles></span><br style="background-color: rgb(255, 255, 102); font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <Configurations></span><br style="font-family: courier new,monospace;"><br>Differences are highlighting in <span style="background-color: rgb(255, 255, 102);">yellow</span> for those of you with HTML email.<br>
<br>What I can't figure out is who changed the file. Did VS or CMake change the file? The fun part is that if I configure again, CMake writes projects that look like the first again, and after building then it will change to the second causing the projects to reload. Eventually CMake runs out of changes (I have dependencies generated from build processes that cause CMake to regenerate some of the projects) and I get convergence, but this does cause quite a bit of reloading.<br>
<br>I also see this between the first build and after running the build a second time (which causes a reload):<br><br><span style="font-family: courier new,monospace;">CommandLine="&quot;C:\Program Files (x86)\Programming\CMake 2.6\bin\cmake.exe&quot; -H<span style="background-color: rgb(255, 255, 102);">c</span>:/code/stuff/mysource -BC:/code/stuff/mysource/build-64 --check-stamp-file CMakeFiles/generate.stamp"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">CommandLine="&quot;C:\Program Files (x86)\Programming\CMake 2.6\bin\cmake.exe&quot; -H<span style="background-color: rgb(255, 255, 102);">C</span>:/code/stuff/mysource -BC:/code/stuff/mysource/build-64 --check-stamp-file CMakeFiles/generate.stamp"</span><br>
<br>The path to -H changes case.<br><br>Thanks,<br>James<br style="font-family: courier new,monospace;"><br>