[cmake-developers] Finding versioned libraries

Brad King brad.king at kitware.com
Wed Feb 15 09:14:55 EST 2012


On 2/15/2012 7:58 AM, Rolf Eike Beer wrote:
> as I found out today this construct doesn't work:
>
> find_library(MYLIB libfoo.so.2)
>
> This is because find_library will only try to access the whole path if the
> given name matches PREFIX.*SUFFIX, which is obviously not the case here. My
> simple approach on fixing this would be to also allow PREFIX.*SUFFIX\..*:
[snip]
> Any objections?

Looks good to me.

Thanks,
-Brad


More information about the cmake-developers mailing list