Notes |
|
(0027322)
|
David Cole
|
2011-09-02 17:05
|
|
Resolving as duplicate. The duplicate bug also contains this link in a note that I added to it:
http://www.cmake.org/pipermail/cmake/2010-July/thread.html#38284 [^]
That very long mailing list discussion was all about whether or not (or how) we could possibly switch the existing behavior with the one that you are looking for.
One way for you to do this on your own is to split the call into multiple calls, and search all names in a single path before moving on to the next call that contains only the next path, and so on, for however many paths you have.
Please feel free, to re-open this issue if you disagree with the resolution, or if you think this case is significantly different than 0010718 (I think it's exactly the same issue...)
If you'd like to discuss things further, I'd recommend bringing it over to the CMake mailing list, where there is a wider audience of readers that may have some input or insight to share. |
|
|
(0027324)
|
khusmann
|
2011-09-02 17:42
(edited on: 2011-09-02 17:43) |
|
Sorry for reopening (because yes, it is an exact duplicate), but I wanted to add this note before it's completely closed:
Your solution to split the call into multiple calls would work if I was just dealing with my own code, but the place where I need it resolved is in the FindBoost module. (And the problem probably affects other modules as well, like a FindPython module as demonstrated in the mailing list).
Because of this find_library bug, FindBoost can find the headers of one version of boost, but then use the libraries of a different version of boost. Should I report this instead as a bug for the FindBoost module?
As for a temporary fix, I suppose I could copy FindBoost.cmake into my project's cmake/modules dir and then modify it to split the call as you talk about, but that seems rather hack-ish. Is there another solution to this that I'm not seeing? If there's not an obvious answer here, I'll take it to the mailing list as you suggest.
|
|
|
(0027325)
|
David Cole
|
2011-09-02 17:49
|
|
Ask on the mailing list... Many more people familiar with FindBoost read that than read this... |
|
|
(0028499)
|
David Cole
|
2012-02-06 06:07
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|