Quantcast

libftdi(-1): Add cmake option to enable ASYNC_MODE

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

libftdi(-1): Add cmake option to enable ASYNC_MODE

Uwe Bonnes

Appended patch allows to openm async mode with something like
cmake -DASYNC-MODE=on

It should apply to libusb too.

Bye
--
Uwe Bonnes                [hidden email]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 564dc4d..3e6c96d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,6 +5,11 @@ set(MINOR_VERSION 17)
 set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION})
 SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
 
+option(ASYNC-MODE "enable experimental async mode. Linux only")
+if(ASYNC-MODE)
+  add_definitions(-DLIBFTDI_LINUX_ASYNC_MODE)
+endif(ASYNC-MODE)
+
 # CMake
 if("${CMAKE_BUILD_TYPE}" STREQUAL "")
    set(CMAKE_BUILD_TYPE     Debug)

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: libftdi(-1): Add cmake option to enable ASYNC_MODE

Jie Zhang-2
On Wed, Feb 3, 2010 at 12:31 AM, Uwe Bonnes
<[hidden email]> wrote:
>
> Appended patch allows to openm async mode with something like
> cmake -DASYNC-MODE=on
>
> It should apply to libusb too.
>
Installed. Thanks!


Jie

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [hidden email]  

Loading...