Problems with path search order

Alexander Neundorf neundorf at kde.org
Tue Mar 28 20:17:48 CEST 2006


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 
if(NOT FOO_LIBRARY)
   find_library(FOO_LIBRARY NAMES foo)
endif(NOT FOO_LIBRARY)

rr will the second test simply be skipped if FOO_LIBRARY has already been 
found by the first check ?

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list