Serial autoprobing is now DISABLED as default, fix Issue 58.
This commit is contained in:
parent
1e2ccbf9ff
commit
2d4bdf28a1
5 changed files with 18 additions and 17 deletions
|
|
@ -22,7 +22,7 @@ INCLUDE(UseDoxygen)
|
|||
SET(LIBNFC_DEBUG_OUTPUT OFF CACHE BOOL "Debug output of communication with the NFC chip")
|
||||
SET(LIBNFC_PCSC ON CACHE BOOL "Enable PC/SC support (ACR122)")
|
||||
SET(LIBNFC_USB ON CACHE BOOL "Enable direct USB communication support (PN531 and PN533)")
|
||||
SET(LIBNFC_DISABLE_SERIAL_AUTOPROBE OFF CACHE BOOL "Disable serial autoprobe")
|
||||
SET(LIBNFC_SERIAL_AUTOPROBE_ENABLED OFF CACHE BOOL "Allow serial ports to be probed (can seriously disturb connected serial devices)")
|
||||
|
||||
IF(DEFINED CMAKE_INSTALL_LIBDIR)
|
||||
SET(libdir ${CMAKE_INSTALL_LIBDIR})
|
||||
|
|
@ -42,9 +42,9 @@ IF(NOT DEFINED SHARE_INSTALL_PREFIX)
|
|||
SET(SHARE_INSTALL_PREFIX share)
|
||||
ENDIF(NOT DEFINED SHARE_INSTALL_PREFIX)
|
||||
|
||||
IF(LIBNFC_DISABLE_SERIAL_AUTOPROBE)
|
||||
ADD_DEFINITIONS("-DDISABLE_SERIAL_AUTOPROBE")
|
||||
ENDIF(LIBNFC_DISABLE_SERIAL_AUTOPROBE)
|
||||
IF(LIBNFC_SERIAL_AUTOPROBE_ENABLED)
|
||||
ADD_DEFINITIONS("-DSERIAL_AUTOPROBE_ENABLED")
|
||||
ENDIF(LIBNFC_SERIAL_AUTOPROBE_ENABLED)
|
||||
|
||||
IF(LIBNFC_DEBUG_OUTPUT)
|
||||
ADD_DEFINITIONS(-DDEBUG -g3)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue