[CMake] Problem with CMAKE_AUTOMOC files not being regenerated or cleaned
Glenn Coombs
glenn.coombs at gmail.com
Sun Apr 28 03:26:12 EDT 2013
No, cleaning the project didn't remove that file.
--
Glenn
On 26 April 2013 17:28, Alexander Neundorf <a.neundorf-work at gmx.net> wrote:
> On Friday 26 April 2013, Glenn Coombs wrote:
> > No, the yuv_player_automoc.cpp file is not removed on a clean (nor are
> the
> > other moc_*.cpp files). Having just modified ctrlBasic.cpp and
> > ctrlBasic.h:
> >
> > $ ls -ltr moc* ../ctrlMenu/ctrlBasic.*
> > -rwxr-xr-x+ 1 glenn.coombs Domain Users 4366 Apr 25 15:04
> > moc_ctrlBasic.cpp*
> > -rwxr-xr-x+ 1 glenn.coombs Domain Users 11912 Apr 25 15:04
> > moc_ctrlmenu.cpp* -rwxr-xr-x+ 1 glenn.coombs Domain Users 8203 Apr 25
> > 15:04 moc_infoWin.cpp* -rwxr-xr-x+ 1 glenn.coombs Domain Users 3508 Apr
> > 25 15:04
> > moc_qglDisplay.cpp*
> > -rwxr-xr-x+ 1 glenn.coombs Domain Users 6493 Apr 25 15:04
> > moc_qglMultiWindow.cpp*
> > -rwxr-xr-x+ 1 glenn.coombs Domain Users 2529 Apr 25 15:04
> > moc_qglWindow.cpp*
> > -rwxr-xr-x+ 1 glenn.coombs Domain Users 4242 Apr 25 15:04
> > moc_videoGeneric.cpp*
> > -rwxr-xr-x+ 1 glenn.coombs Domain Users 8513 Apr 26 08:27
> > ../ctrlMenu/ctrlBasic.cpp*
> > -rwxr-xr-x+ 1 glenn.coombs Domain Users 1237 Apr 26 08:28
> > ../ctrlMenu/ctrlBasic.h*
> >
> > I would expect the moc_ctrlBasic.cpp file to be regenerated but it isn't.
> > In fact, if I manually delete moc_ctrlBasic.cpp then the build fails:
> >
> > 1>------ Build started: Project: yuv_player, Configuration: Debug Win32
> > ------
> > 1> yuv_player_automoc.cpp
> > 1>yuv_player_automoc.cpp(2): fatal error C1083: Cannot open include file:
> > 'moc_ctrlBasic.cpp': No such file or directory
> >
> > The only way to get moc_ctrlBasic.cpp regenerated that I have found so
> far
> > is to manually delete both it and yuv_player_automoc.cpp.
>
> yuv_player_automoc.cpp is the "key" file. If you remove it, everything
> should
> be regenerated.
>
> So "cleaning" the project did not remove that file ?
>
> I'll have a look.
>
> Alex
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130428/75b24046/attachment.htm>
More information about the CMake
mailing list