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 <<a href="mailto:jamesbigler@gmail.com">jamesbigler@gmail.com</a>> 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 <<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>> wrote:<br>
> James Bigler wrote:<br>
>><br>
>> I just ran into this as well. It appears that instead of CMake<br>
>> telling you that a file is missing during configuration, it simply<br>
>> throws the assert during generation.<br>
>><br>
>> You can reproduce this with the following CMakeLists.txt file (no<br>
>> source file needed).<br>
>><br>
>> project(test)<br>
>> set(sources foo.cc)<br>
>> add_executable(test ${sources})<br>
>><br>
>> Should I file a bug for this?<br>
>><br>
> It does not seem to do that for me??<br>
><br>
> CVS CMake:<br>
><br>
><br>
> $ ../../CMake-build26/bin/cmake -G"Unix Makefiles" ..<br>
> -- Configuring done<br>
> CMake Error in CMakeLists.txt:<br>
> Cannot find source file "foo.cc". Tried extensions .c .C .c++ .cc .cpp<br>
> .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx<br>
><br>
><br>
> -- Build files have been written to: C:/hoffman/My Builds/test<br>
><br>
><br>
> CMake 2.6:<br>
> hoffman@CORRIN ~/My Builds/test/b<br>
> $ /cygdrive/c/Program\ Files/CMake\ 2.6<br>
> CMake 2.6/ CMake 2.6 rc 5/<br>
><br>
> hoffman@CORRIN ~/My Builds/test/b<br>
> $ /cygdrive/c/Program\ Files/CMake\ 2.6/bin/cmake -G"Unix Makefiles" ..<br>
> -- The C compiler identification is MSVC<br>
> -- The CXX compiler identification is MSVC<br>
> -- Configuring done<br>
> CMake Error in CMakeLists.txt:<br>
> Cannot find source file "foo.cc". Tried extensions .c .C .c++ .cc .cpp<br>
> .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx<br>
><br>
><br>
> --<br>
> Bill Hoffman<br>
<br>
</div></div>I was able to reproduce my problem with cmake as well as ccmake:<br>
$ cmake -G"Unix Makefiles" ..<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>
Cannot find source file "foo.cc". Tried extensions .c .C .c++ .cc .cpp<br>
.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'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>