[CMake] CMake internal assertion failing at generate time

Bill Hoffman bill.hoffman at kitware.com
Thu Jun 26 17:10:55 EDT 2008


James Bigler wrote:
> I just ran into this as well.  It appears that instead of CMake
> telling you that a file is missing during configuration, it simply
> throws the assert during generation.
> 
> You can reproduce this with the following CMakeLists.txt file (no
> source file needed).
> 
> project(test)
> set(sources foo.cc)
> add_executable(test ${sources})
> 
> Should I file a bug for this?
> 
It does not seem to do that for me??

CVS CMake:


$ ../../CMake-build26/bin/cmake -G"Unix Makefiles" ..
-- Configuring done
CMake Error in CMakeLists.txt:
   Cannot find source file "foo.cc".  Tried extensions .c .C .c++ .cc .cpp
   .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx


-- Build files have been written to: C:/hoffman/My Builds/test


CMake 2.6:
hoffman at CORRIN ~/My Builds/test/b
$ /cygdrive/c/Program\ Files/CMake\ 2.6
CMake 2.6/      CMake 2.6 rc 5/

hoffman at CORRIN ~/My Builds/test/b
$ /cygdrive/c/Program\ Files/CMake\ 2.6/bin/cmake -G"Unix Makefiles" ..
-- The C compiler identification is MSVC
-- The CXX compiler identification is MSVC
-- Configuring done
CMake Error in CMakeLists.txt:
   Cannot find source file "foo.cc".  Tried extensions .c .C .c++ .cc .cpp
   .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx


-- 
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518-371-3971 (phone and fax)


More information about the CMake mailing list