display_feature_log if found

Alexander Neundorf neundorf at kde.org
Thu Aug 19 21:37:41 CEST 2010


On Wednesday 18 August 2010, Yury G. Kudryashov wrote:
> Alexander Neundorf wrote:
> > On Wednesday 18 August 2010, Yury G. Kudryashov wrote:
> >> Hi!
> >>
> >> Sometimes I see
> >>
> >> m_o_f_p(Foo) # or find_package(Foo)
> >> if (NOT Foo_FOUND)
> >> display_feature_log(...)
> >> endif (NOT Foo_FOUND)
> >>
> >> In this case nothing is displayed when dependency is found. It looks
> >> strange to me, and I'd like to remove these if..endif.
> >
> > Where did you see that ?
>
> For example, kdeutils-4.5.0/printer-applet/CMakeLists.txt

Yes, that doesn't make sense.
macro_log_feature() should be called both in success and failure case.

Alex


More information about the Kde-buildsystem mailing list