libftdi Archives

Subject: Re: static linking against libftdi?

From: Chris Morgan <chmorgan@xxxxxxxxx>
To: "libftdi@xxxxxxxxxxxxxxxxxxxxxxx" <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 27 Jan 2014 13:48:15 -0500
On Mon, Jan 27, 2014 at 12:58 PM,
<bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>>>>>> "Chris" == Chris Morgan <chmorgan@xxxxxxxxx> writes:
>
>     Chris> Hello.  How would I go about having my cmake program link against
>     Chris> the static version of libftdi? I'd like to ship my utility to
>     Chris> some people here in house and not have them have to go through a
>     Chris> process to get libftdi on their systems (fedora doesn't have
>     Chris> libftdi 1.x available in f19 (and f20 either I think)).
>
> I am using Findlibftdi.cmake
> # Copyright 2009  SoftPLC Corporation  http://softplc.com
> # Dick Hollenbeck <d...@xxxxxxxxxxx>
> # License: GPL v2
>
> I have
> set(USE_STATIC_FTDI ON)
> in CMakeLists.txt for a static build.
>
> Bye
> --
> Uwe Bonnes                bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



Ahh. So this isn't something supported by the script invoked when you do:

find_package(LibFTDI1 NO_MODULE REQUIRED)

the cmake script included with libftdi itself?

I'll have to give that script a try here.

Chris

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread