<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 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-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-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></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="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have a few Visual Studio projects that I set a post-build event in Visual Studio to copy the DLLs, LIBs and a few other files up into a directory used for development. I do this by running the following custom command:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND
<o:p></o:p></p>
<p class="MsoNormal"> ${CMAKE_COMMAND} -D "BUILD_TYPE:STRING=\$(Configuration)"
<o:p></o:p></p>
<p class="MsoNormal"> -D "CMAKE_INSTALL_LOCAL_ONLY:STRING=TRUE"
<o:p></o:p></p>
<p class="MsoNormal"> -D "CMAKE_INSTALL_PREFIX:STRING=${ARA_DIR}"
<o:p></o:p></p>
<p class="MsoNormal"> -D "COMPONENT:STRING=development"<o:p></o:p></p>
<p class="MsoNormal"> -P "${PROJECT_BINARY_DIR}/cmake_install.cmake" VERBATIM)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I can guarantee you that all of the paths are correct and that this used to work no problem. Now, every now and then I get the following error:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">12>PostBuildEvent:<o:p></o:p></p>
<p class="MsoNormal">12> -- Install configuration: "Debug"<o:p></o:p></p>
<p class="MsoNormal">12> -- Install component: "development"<o:p></o:p></p>
<p class="MsoNormal">12> -- Installing: C:/projects/AraFramework/bin/AraOpenGLd.dll<o:p></o:p></p>
<p class="MsoNormal">12> CMake Error at cmake_install.cmake:64 (FILE):<o:p></o:p></p>
<p class="MsoNormal">12> file INSTALL cannot set modification time on<o:p></o:p></p>
<p class="MsoNormal">12> "C:/projects/AraFramework/bin/AraOpenGLd.dll"<o:p></o:p></p>
<p class="MsoNormal">12><o:p></o:p></p>
<p class="MsoNormal">12><o:p></o:p></p>
<p class="MsoNormal">12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets<o:p></o:p></p>
<p class="MsoNormal">(113,5): error MSB3073: The command "setlocal<o:p></o:p></p>
<p class="MsoNormal">12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets<o:p></o:p></p>
<p class="MsoNormal">(113,5): error MSB3073: C:\projects\CMake\2.8\bin\cmake.exe -D BUILD_TYPE:STRING<o:p></o:p></p>
<p class="MsoNormal">=Debug -D CMAKE_INSTALL_LOCAL_ONLY:STRING=TRUE -D CMAKE_INSTALL_PREFIX:STRING=C:<o:p></o:p></p>
<p class="MsoNormal">/projects/AraFramework -D COMPONENT:STRING=development -P C:/projects/AraFramewo<o:p></o:p></p>
<p class="MsoNormal">rk/src/vc10-build/AraOpenGL/cmake_install.cmake<o:p></o:p></p>
<p class="MsoNormal">12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets<o:p></o:p></p>
<p class="MsoNormal">(113,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd<o:p></o:p></p>
<p class="MsoNormal">12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets<o:p></o:p></p>
<p class="MsoNormal">(113,5): error MSB3073: :cmEnd<o:p></o:p></p>
<p class="MsoNormal">12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets<o:p></o:p></p>
<p class="MsoNormal">(113,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDon<o:p></o:p></p>
<p class="MsoNormal">e<o:p></o:p></p>
<p class="MsoNormal">12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets<o:p></o:p></p>
<p class="MsoNormal">(113,5): error MSB3073: :cmErrorLevel<o:p></o:p></p>
<p class="MsoNormal">12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets<o:p></o:p></p>
<p class="MsoNormal">(113,5): error MSB3073: exit /b %1<o:p></o:p></p>
<p class="MsoNormal">12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets<o:p></o:p></p>
<p class="MsoNormal">(113,5): error MSB3073: :cmDone<o:p></o:p></p>
<p class="MsoNormal">12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets<o:p></o:p></p>
<p class="MsoNormal">(113,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd<o:p></o:p></p>
<p class="MsoNormal">12>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets<o:p></o:p></p>
<p class="MsoNormal">(113,5): error MSB3073: :VCEnd" exited with code 1.<o:p></o:p></p>
<p class="MsoNormal">12><o:p></o:p></p>
<p class="MsoNormal">12>Build FAILED.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This is on a specific project, but it is not always the same project and it happens very randomly. If I build the solution multiple times, it will eventually make it through everything, but I always have to build the solution multiple times.
Does anyone know why this would be happening and if there is something I could do to prevent it?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank You,<o:p></o:p></p>
<p class="MsoNormal">Eric <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><i>I am a fortunate man. Whenever I make a mistake, other people are sure to notice it. -- The Analects, Confucius<o:p></o:p></i></p>
</div>
</body>
</html>