[CMake] find_package() Config mode iteration gravely broken (Mac OpenCV KISS installation fails)
Andreas Mohr
andi at lisas.de
Tue Apr 30 16:17:24 EDT 2013
On Tue, Apr 30, 2013 at 09:44:35PM +0200, Alexander Neundorf wrote:
> On Tuesday 30 April 2013, Andreas Mohr wrote:
> > Consider /opt/local/lib/cmake/OpenCVConfig-version.cmake
> > Visit /opt/local/lib/cmake/OpenCVConfig-version.cmake/
> > CheckDirectory (dir /opt/local/lib/cmake/OpenCVConfig-version.cmake/,
> > suffix , d /opt/local/lib/cmake/OpenCVConfig-version.cmake/)
>
> Hmm, why does it think this is a directory ?
That's a good question. Admittedly I haven't spent the additional
half-hour tracing/hunting it down further (the decoupled implicit handling,
while quite likely massively code-reducing, doesn't seem to help here,
thus I just gave up for now, since there are several other efforts waiting).
It's also quite bothering why it fails in such a hard way -
either I'm doing something very stupid that would explain such issues,
or Config mode somehow seems broken in a major way.
Perhaps only in relatively brand new releases?
> > Docs per each command are already sky-high as is (especially in Find
> > areas),
>
> Finally somebody complains that there are too much docs ! ;-)
Maybe I shouldn't have extended them even further? ;)
But indeed in general it's not that bad now, and I think we're actively
closing in on remaining white spots.
> I think it's time to add a "General" section to the docs, which documents the
> supported regexps, generator expressions, and the general order of searching
> of the find-commands.
>
> Right now all that is repeated several times, in each command where that
> feature is used.
Indeed. Similar problem in all the dozen check_symbol_exists() module files
(I will declare one module to be the authoritative one in all the others,
then add more verbose documentation there).
> > there's no need to complicate handling (and thus memorability!!)
> > even more by retaining support of needless/Darwin-disadvantaged variations.
> >
> >
> > Locating installed packages on a system should not be that hard,
>
> Well, it actually is, even if it doesn't sound like a hard problem.
OK, once versioning or static/dynamic debug/release library configs come
into play.
But in this case my car didn't break down once on Gotthard - my vacation
journey hadn't even made it out of my home town...
> Alex
>
> P.S. I know this mail doesn't help you much...
...but writing the original burning flame already did, you bet! ;)
Of course I don't really need "help" any more (OpenCV_DIR is a
moderately usable workaround), but somehow there remains the bitter
taste of keeping to code workaround after workaround after workaround...
Andreas Mohr
More information about the CMake
mailing list