<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>This is also causing my CUDA separable compilation feature to break as well.</div><div><br></div><div>I'm adding object files to the source list of a target, and this works in certain situations, but not all.</div><div><br></div><div>James</div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> "<a href="mailto:jamesbigler@gmail.com">jamesbigler@gmail.com</a>" <<a href="mailto:jamesbigler@gmail.com">jamesbigler@gmail.com</a>><br><span style="font-weight:bold">Date: </span> Thursday, May 8, 2014 12:34 PM<br><span style="font-weight:bold">To: </span> "<a href="mailto:cmake-developers@cmake.org">cmake-developers@cmake.org</a>" <<a href="mailto:cmake-developers@cmake.org">cmake-developers@cmake.org</a>><br><span style="font-weight:bold">Subject: </span> [cmake-developers] Weird dependency on object files generated        elsewhere<br></div><div><br></div><blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div dir="ltr">I was planning on fixing a bug related to flags and separable compilation for FindCUDA when I discovered something peculiar.  I'm asking here in case I missed something with how source files are processed.<div><br></div><div>I branched off of origin/master this morning.</div><div><br></div><div>I have a macro that generates some custom commands for building object files for cuda (found in FindCUDA.cmake).</div><div><br></div><div><div>CUDA_COMPILE(CUDA_FILES <a href="http://test_bin.cu">test_bin.cu</a>)</div><div>message("CUDA_FILES = ${CUDA_FILES}")</div><div><br></div><div>ADD_EXECUTABLE(cuda_compile_example</div><div>  ${CUDA_FILES}</div><div>  ${source_files}</div><div>  main.cc</div><div>  external_dependency.h</div><div>  )</div></div><div><br></div><div>When print out CUDA_FILES I get a full path:</div><div><br></div><div><div>CUDA_FILES = /Users/jbigler/code/FindCUDA/build-cmake-git/src/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_test_bin.cu.o</div></div><div><br></div><div>Great!</div><div><br></div><div>When I try to compile cuda_compile_example I get this, though:</div><div><br></div><div><div>make[2]: *** No rule to make target `src/CMakeFiles/cuda_compile.dir/cuda_compile_generated_test_bin.cu.o', needed by `src/cuda_compile_example'.  Stop.</div></div><div><br></div><div>What I don't see in my makefiles is the build rule for the object file.</div><div><br></div><div>I can provide a reproducer, but it would require having CUDA installed.</div><div><br></div><div>

This is for OSX 10.8 with Xcode 5.1 (command line utils, so Makefile).</div><div><br></div><div>James</div></div></blockquote></span>
<DIV>
<HR>
</DIV>
<DIV>This email message is for the sole use of the intended recipient(s) and may 
contain confidential information.  Any unauthorized review, use, disclosure 
or distribution is prohibited.  If you are not the intended recipient, 
please contact the sender by reply email and destroy all copies of the original 
message. </DIV>
<DIV>
<HR>
</DIV>
</body></html>