[cmake-developers] Moc-test errors
Sebastian Holtermann
seblist at xwmw.org
Thu Jun 6 10:45:13 EDT 2019
>>>> The following tests FAILED:
>>>> 577 - Qt5Autogen.MocIncludeRelaxed (Failed)
>>>> 578 - Qt5Autogen.MocIncludeStrict (Failed)
>>>> 579 - Qt5Autogen.MocSkipSource (Failed)
>>>> Errors while running CTest
>>>>
>>>
>>> Okay, it looks like SKIP_AUTOMOC doesn't work properly.
>>> Can you please post the output of
>>>
>>> - `ctest -R Qt5Autogen.MocSkip -VV`
>>> - `cat
>>> Tests/Qt5Autogen/MocSkipSource/CMakeFiles/skipMocA_autogen.dir/AutogenInfo.cmake`
>>> - `cat
>>> Tests/Qt5Autogen/MocSkipSource/CMakeFiles/skipMocB_autogen.dir/AutogenInfo.cmake`
>>
>> OK, attached.
>>
>
> BTW, with todays compilation (master branch) also some qt4-moc-tests are failing.
> This starts to be itching ...
>
>
> # ctest -R Autogen.Moc
> ...
> The following tests FAILED:
> 577 - Qt5Autogen.MocIncludeRelaxed (Failed)
> 578 - Qt5Autogen.MocIncludeStrict (Failed)
> 579 - Qt5Autogen.MocSkipSource (Failed)
> 615 - Qt4Autogen.MocIncludeRelaxed (Failed)
> 616 - Qt4Autogen.MocIncludeStrict (Failed)
> 617 - Qt4Autogen.MocSkipSource (Failed)
> Errors while running CTest
Thanks for the files.
For some reason the file processing flags are wrong.
E.g. in AutogenInfo-1.cmake
set(AM_HEADERS_FLAGS "mU;MU;MU")
should be
set(AM_HEADERS_FLAGS "mU;mU;mu")
A lower case letter means no moc/uic processing.
It seems to be something wrong with SKIP_AUTOMOC/GEN flags of headers
that were found from their source files.
Are there symbolic directory links involved in either the CMake source
directory or the CMake build directory?
-Sebastian
More information about the cmake-developers
mailing list