[CMake] CMake internal assertion failing at generate time

James Bigler jamesbigler at gmail.com
Thu Jun 26 16:58:39 EDT 2008


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?

James

On Wed, Jun 18, 2008 at 5:01 PM, Keith Morley <kmorley at nvidia.com> wrote:
>
> I am writing some simple CMake build scripts using CMake 2.6.  Things seem
> fine through
> configuring but at makefile generation CMake bails on an internal assertion
> with the
> following message:
>
>                                                     Page 1 of 1
>  Assertion failed: (!relFromSource.empty()), function
> GetObjectFileNameWithoutTarget, file
> /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,
> line 2440.
>  CMAKE_OSX_ARCAbort trap
>
> I am not sure where to begin looking for the problem.  Any advice would be
> appreciated
>
> Thanks
> Keith
> ________________________________
> 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.
> ________________________________
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list