This is the same as the mantis issue <a href="http://public.kitware.com/Bug/view.php?id=6799">http://public.kitware.com/Bug/view.php?id=6799</a> which I closed on 6/19. It is fixed already in CVS HEAD and in CVS CMake-2-6 branch. But it is still repeatable in CMake <a href="http://2.6.0.">2.6.0.</a><br>
<br><br><br><div class="gmail_quote">On Thu, Jun 26, 2008 at 5:45 PM, James Bigler &lt;<a href="mailto:jamesbigler@gmail.com">jamesbigler@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Thu, Jun 26, 2008 at 3:10 PM, Bill Hoffman &lt;<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>&gt; wrote:<br>
&gt; James Bigler wrote:<br>
&gt;&gt;<br>
&gt;&gt; I just ran into this as well. &nbsp;It appears that instead of CMake<br>
&gt;&gt; telling you that a file is missing during configuration, it simply<br>
&gt;&gt; throws the assert during generation.<br>
&gt;&gt;<br>
&gt;&gt; You can reproduce this with the following CMakeLists.txt file (no<br>
&gt;&gt; source file needed).<br>
&gt;&gt;<br>
&gt;&gt; project(test)<br>
&gt;&gt; set(sources foo.cc)<br>
&gt;&gt; add_executable(test ${sources})<br>
&gt;&gt;<br>
&gt;&gt; Should I file a bug for this?<br>
&gt;&gt;<br>
&gt; It does not seem to do that for me??<br>
&gt;<br>
&gt; CVS CMake:<br>
&gt;<br>
&gt;<br>
&gt; $ ../../CMake-build26/bin/cmake -G&quot;Unix Makefiles&quot; ..<br>
&gt; -- Configuring done<br>
&gt; CMake Error in CMakeLists.txt:<br>
&gt; &nbsp;Cannot find source file &quot;foo.cc&quot;. &nbsp;Tried extensions .c .C .c++ .cc .cpp<br>
&gt; &nbsp;.cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx<br>
&gt;<br>
&gt;<br>
&gt; -- Build files have been written to: C:/hoffman/My Builds/test<br>
&gt;<br>
&gt;<br>
&gt; CMake 2.6:<br>
&gt; hoffman@CORRIN ~/My Builds/test/b<br>
&gt; $ /cygdrive/c/Program\ Files/CMake\ 2.6<br>
&gt; CMake 2.6/ &nbsp; &nbsp; &nbsp;CMake 2.6 rc 5/<br>
&gt;<br>
&gt; hoffman@CORRIN ~/My Builds/test/b<br>
&gt; $ /cygdrive/c/Program\ Files/CMake\ 2.6/bin/cmake -G&quot;Unix Makefiles&quot; ..<br>
&gt; -- The C compiler identification is MSVC<br>
&gt; -- The CXX compiler identification is MSVC<br>
&gt; -- Configuring done<br>
&gt; CMake Error in CMakeLists.txt:<br>
&gt; &nbsp;Cannot find source file &quot;foo.cc&quot;. &nbsp;Tried extensions .c .C .c++ .cc .cpp<br>
&gt; &nbsp;.cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Bill Hoffman<br>
<br>
</div></div>I was able to reproduce my problem with cmake as well as ccmake:<br>
$ cmake -G&quot;Unix Makefiles&quot; ..<br>
-- The C compiler identification is GNU<br>
-- The CXX compiler identification is GNU<br>
-- Check for working C compiler: /usr/bin/gcc<br>
-- Check for working C compiler: /usr/bin/gcc -- works<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Check for working CXX compiler: /usr/bin/c++<br>
-- Check for working CXX compiler: /usr/bin/c++ -- works<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
<div class="Ih2E3d">-- Configuring done<br>
CMake Error in CMakeLists.txt:<br>
 &nbsp;Cannot find source file &quot;foo.cc&quot;. &nbsp;Tried extensions .c .C .c++ .cc .cpp<br>
 &nbsp;.cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx<br>
<br>
<br>
</div><div class="Ih2E3d">Assertion failed: (!relFromSource.empty()), function<br>
GetObjectFileNameWithoutTarget, file<br>
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.0/Source/cmLocalGenerator.cxx,<br>
line 2440.<br>
</div>Abort trap<br>
<br>
I&#39;m using ccmake version 2.6.0 I got from mac ports (running on Mac 10.5.2).<br>
<br>
$ ccmake --version<br>
ccmake version 2.6-patch 0<br>
<br>
Have you tried using this version of cmake?<br>
<font color="#888888"><br>
James<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>