git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5478cd5
)
libftdi(-1): Add cmake option to enable ASYNC_MODE
author
Uwe Bonnes
<bon@elektron.ikp.physik.tu-darmstadt.de>
Tue, 2 Feb 2010 16:31:08 +0000 (17:31 +0100)
committer
Jie Zhang
<jzhang918@gmail.com>
Mon, 15 Feb 2010 09:09:09 +0000 (17:09 +0800)
Appended patch allows to openm async mode with something like
cmake -DASYNC-MODE=on
It should apply to libusb too.
CMakeLists.txt
patch
|
blob
|
blame
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
564dc4d
..
3e6c96d
100644
(file)
--- 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)