[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: Re: [CMake] find_package with COMPONENTS never honors REQUIRED
From: Eric Noulard <eric.noulard () gmail ! com>
Date: 2018-08-30 18:32:17
Message-ID: CAPASGLoVhS_E7B-6Hjb0JrZviDWGs6km5F43qXSvSsvz6_xm0Q () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Le jeu. 30 août 2018 à 20:03, George PF <george.p.f@mail.com> a écrit :
> > The documentation is intriguing about REQUIRED COMPONENTS interaction....
>
> That's... one way to put it.
>
Yeah you know. Kind of ironic here :-)
> > So it is possible that the failure behavior when specifying COMPONENTS
> is up to the module...
>
> I admit I was not reading the docs in that depth, but REQUIRED can only
> mean one thing and should
> not need second guessing the documentation. Sadly, someone thought
> otherwise.
>
I guess there is no one to blame here.
The doc is too-realistic about the state of find modules.
At least Config mode should do it right I hope.
Module mode is historically for hand-written module maintained by
volunteers:
https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/dev/Module-Maintainers
> Do you see this only with Qt or do other packages with components (may be
> Boost) behave like this?
> > I guess that Qt5 should be running in config mode, whereas boost must be
> in module mode though.
>
> I was debugging an older cmake project and wondered why it was not finding
> the non-standard Qt location,
> that's when I stumbled upon this issue.
>
I see. I think something could/should be done for Config mode, for Module
mode It would certainly depends on the module maintainer.
--
Eric
[Attachment #5 (text/html)]
<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Le jeu. 30 août 2018 \
à 20:03, George PF <<a \
href="mailto:george.p.f@mail.com">george.p.f@mail.com</a>> a écrit \
:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> The documentation \
is intriguing about REQUIRED COMPONENTS interaction....<br> <br>
That's... one way to put it.<br></blockquote><div><br></div><div>Yeah you know. \
Kind of ironic here :-)</div><div> </div><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> > So it is possible that the failure behavior \
when specifying COMPONENTS is up to the module...<br> <br>
I admit I was not reading the docs in that depth, but REQUIRED can only mean one \
thing and should<br> not need second guessing the documentation. Sadly, someone \
thought otherwise.<br></blockquote><div><br></div><div>I guess there is no one to \
blame here.</div><div>The doc is too-realistic about the state of find \
modules.</div><div>At least Config mode should do it right I hope.</div><div>Module \
mode is historically for hand-written module maintained by volunteers: <a \
href="https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/dev/Module-Maintainer \
s">https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/dev/Module-Maintainers</a></div><div><br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> > Do you see this only with Qt or do other \
packages with components (may be Boost) behave like this?<br> > I guess that Qt5 \
should be running in config mode, whereas boost must be in module mode though. <br> \
<br> I was debugging an older cmake project and wondered why it was not finding the \
non-standard Qt location, <br> that's when I stumbled upon this \
issue.<br></blockquote><div><br></div><div>I see. I think something could/should be \
done for Config mode, for Module mode It would certainly depends on the module \
maintainer.</div><div> </div></div>-- <br><div dir="ltr" \
class="gmail_signature"><div dir="ltr"><div><div \
dir="ltr"><div>Eric<br></div></div></div></div></div></div>
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic