Re: [CMake] Loop expansion in find_library() seems backwards

2010-09-08 Thread Philip Lowman
On Wed, Sep 8, 2010 at 8:56 AM, Michael Hertling wrote: > ...which shows that 10718 is still alive. ;-) > > Hi Philip, > > what's your opinion on this topic, in particular > > - swapping loops and the required effort, the related risks > and the expected results, > I'd like to know if there is a

Re: [CMake] Loop expansion in find_library() seems backwards

2010-09-08 Thread Michael Hertling
On 09/08/2010 08:38 AM, Michael Wild wrote: > > On 8. Sep, 2010, at 8:25 , Philip Lowman wrote: > >> Let's say I have many different potential names for a library and the >> following filesystem >> >> /usr/lib/libnspr4.so >> ${CMAKE_CURRENT_SOURCE_DIR}/libnspr4a.so >> >> find_library(TEST_LIBRARY

Re: [CMake] Loop expansion in find_library() seems backwards

2010-09-08 Thread Philip Lowman
Wow, that's pretty bad. I even replied to one of those threads. Sorry for the noise. The official bug post for this issue is here: http://public.kitware.com/Bug/view.php?id=10718 I agree with Alan Irwin that it will continue to haunt users well into the future. On Wed, Sep 8, 2010 at 2:38 AM, Mi

Re: [CMake] Loop expansion in find_library() seems backwards

2010-09-07 Thread Michael Wild
On 8. Sep, 2010, at 8:25 , Philip Lowman wrote: > Let's say I have many different potential names for a library and the > following filesystem > > /usr/lib/libnspr4.so > ${CMAKE_CURRENT_SOURCE_DIR}/libnspr4a.so > > find_library(TEST_LIBRARY > NAMES nspr4 nspr4a > HINTS ${CMAKE_CURRENT_SOURC

[CMake] Loop expansion in find_library() seems backwards

2010-09-07 Thread Philip Lowman
Let's say I have many different potential names for a library and the following filesystem /usr/lib/libnspr4.so ${CMAKE_CURRENT_SOURCE_DIR}/libnspr4a.so find_library(TEST_LIBRARY NAMES nspr4 nspr4a HINTS ${CMAKE_CURRENT_SOURCE_DIR} ) I'm somewhat surprised that the following code finds /us