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:
[EMAIL PROTECTED] ~/My Builds/test/b
$ /cygdrive/c/Program\ Files/CMake\ 2.6
CMake 2.6/      CMake 2.6 rc 5/

[EMAIL PROTECTED] ~/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
[EMAIL PROTECTED]
http://www.kitware.com
518-371-3971 (phone and fax)
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to