Problems with path search order

Brad King brad.king at
Tue Mar 28 21:13:42 CEST 2006

Alexander Neundorf wrote:
> On Tuesday 28 March 2006 18:10, Brad King wrote:
> ...
>>There is a reason those paths come last which I'll add to the
>>documentation.  You can always switch the order like this:
>>find_library(FOO_LIBRARY NAMES foo PATHS mypaths NO_DEFAULT_PATH)
>>find_library(FOO_LIBRARY NAMES foo)
> Does the second find_library() actually have to be guarded with 
>    find_library(FOO_LIBRARY NAMES foo)
> rr will the second test simply be skipped if FOO_LIBRARY has already been 
> found by the first check ?

Once FOO_LIBRARY is set then find_library does nothing.  Even when there 
is only one call FOO_LIBRARY gets stored in the cache when it is found 
and then the one call does nothing either.


More information about the Kde-buildsystem mailing list