On 01/11/2011 06:13 PM, Pau Garcia i Quiles wrote:
> What about something like this?
> 
> if( FOO_USE_LOCAL_BAR)
>   set( CMAKE_PREFIX_PATH ${PROJECT_SOURCE_DIR}/3rdparty )
> endif(FOO_USE_LOCAL_BAR)
> 
> find_package(BAR)
> 
> It searches the local directory first, then goes for system. Looks easier to 
> me.

The FindBAR.cmake module is looking for a binary installation of BAR,
as in "lib/libbar.a" or "bin/bar".  The source tree does not provide
this so is not an appropriate place to look.

-Brad
_______________________________________________
cmake-developers mailing list
[email protected]
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to