<div dir="ltr">I dug through the ninja build files and found the exact command into a command prompt. The first time it worked. The second time it did not. Here is the output:<div><br></div><div><div>C:\Users\admin>cmd.exe /C "cd /D C:\Users\admin\Workspace\DREAM3D_Rewrite\ninja\</div><div>Applications\DREAM3D && C:\DREAM3D_SDK\cmake-3.0.2-win32-x86\bin\cmake.exe -E copy_directory C:/DREAM3D_SDK/DREAM3D_Data/Data C:/Users/admin/Workspace/DREAM3D_Rewrite/ninja/Bin/./Data/"</div><div>Error copying directory from "C:/DREAM3D_SDK/DREAM3D_Data/Data" to "C:/Users/adm</div><div>in/Workspace/DREAM3D_Rewrite/ninja/Bin/./Data/".</div></div><div><br></div><div>So this is maybe a CMake error?</div><div><br></div><div>The failure seems to be intermittent. Hmm. And just to sanity check. there is plenty of room on the hard drive. </div><div><br></div><div>Thoughts?</div><div>Mike Jackson</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div>_________________________________________________________<br>Mike Jackson                  <a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a><br>BlueQuartz Software                    <a href="http://www.bluequartz.net">www.bluequartz.net</a><br>Principal Software Engineer                  Dayton, Ohio</div>
<br><div class="gmail_quote">On Thu, Oct 2, 2014 at 6:39 PM, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Tried a few different ideas: <br> First, I pulled the latest Ninja sources and built those. No luck, Still Failed.<div>Next, I removed the manually added dependencies of the copy target on the application being built. Still Failed.</div><div>Ran ninja with only a single thread (ninja -j1) AND IT WORKED!</div><div><br></div><div>So I'll just assume that there is a threading issue between CMake and Ninja.</div><div><br></div><div>I ran the same command from the command line and that worked just fine so it must be something in how ninja is trying to do the copy. Unfortunately there does not seem to be any failure log anywhere to get a better idea of _why_ it is failing. <br></div><div><div class="h5"><div><div><br></div>
<br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Michael Jackson</b> <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>></span><br>Date: Thu, Oct 2, 2014 at 5:57 PM<br>Subject: Add_Custom_Target to copy a directory not working with Ninja on Windows<br>To: "<a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a>" <<a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a>><br><br><br><div dir="ltr">Setup: Visual Studio 2013 Express, Ninja Version 1.5.1.git, Windows 7x64, CMake 3.0.1<div><br></div><div>I am trying to build my project and when ninja gets to the point of copying a directory it fails most of the time. Sometimes (I think on a clean build) it works. Always fails when I am running the "ninja package'. Here is the cmake code that I use.</div><div><br></div><div><div>#-------------------------------------------------------------------------------</div><div>#- This copies all the Prebuilt Pipeline files into the Build directory so the help</div><div>#- works from the Build Tree</div><div>add_custom_target(PrebuiltPipelinesCopy ALL</div><div>            COMMAND ${CMAKE_COMMAND} -E copy_directory ${DREAM3D_SUPPORT_DIR}/PrebuiltPipelines</div><div>            ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/PrebuiltPipelines/</div><div>            COMMENT "Copying Prebuilt Pipelines into Binary Directory")</div><div>set_target_properties(PrebuiltPipelinesCopy PROPERTIES FOLDER ZZ_COPY_FILES)</div><div><br></div><div># Make Sure this target as part of the DREAM3D Build</div><div>add_dependencies(DREAM3D PrebuiltPipelinesCopy)</div><div><br></div><div>#- This installs all the help files. Note that we assume a flat directory structure</div><div>#- in the "Help" folder, ie, all html files, images, etc are all in the "Help"</div><div>#- folder and NOT in any subfolders beyond that.</div><div>install(DIRECTORY ${DREAM3D_SUPPORT_DIR}/PrebuiltPipelines</div><div>        DESTINATION .</div><div>        COMPONENT Applications )</div><div><br></div><div>I can not figure out what is going wrong. Visual Studio will sometimes fail also. Has anyone encountered this before?</div><div><br></div><div><br>Thanks</div><div>_________________________________________________________<br>Mike Jackson                  <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>BlueQuartz Software                    <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>Principal Software Engineer                  Dayton, Ohio</div>
</div></div>
</div><br></div></div></div></div>
</blockquote></div><br></div>