[CMake] find_library search orders with CMAKE_PREFIX_PATH & CMAKE_FIND_ROOT_PATH

Nicolas Tisserand nt at manctl.com
Thu May 24 01:04:54 EDT 2012


On Wed, May 23, 2012 at 11:29 AM, David Cole <david.cole at kitware.com> wrote:

> Regarding the loop swapping you ask about in your original post:
>
> I know we've discussed swapping those loops before on this list, quite to
> exhaustion.


I'm sorry to read that... now that I raised the topic again.


> The bottom line is: we will not be changing those loops so as to preserve
> existing behavior. If we do add code to swap those loops, then it would
> have to be conditionally activated, only in response to people requesting
> it by explicitly setting a variable (or some equivalent mechanism).
>

That sound perfectly fine to me. In fact, the fact that the CMake team is
doing a great job at not breaking existing build systems when shipping new
versions is one of the reasons why I use CMake.


> I don't know how far back this discussion was, but it's in the archives.
> (If anybody can provide a pointer to the exact thread, that would be
> great...)
>

Was a consensus reached, back then?

I would very much like to see such an addition to CMake.

As proposed in my previous email, an additional "FIRST" value to the
CMAKE_FIND_ROOT_PATH_MODE_{PROGRAM,INCLUDE,LIBRARY} {ONLY,NEVER,BOTH} set
would perfectly fit the bill, in my case.

Would that be hard to do?

Would it be considered as a welcome addition?

Best,
Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120523/2d157a92/attachment.htm>


More information about the CMake mailing list