Add workaround for libusb while using CMake.
This commit is contained in:
parent
e2e6c6cacc
commit
2a33e28db9
1 changed files with 5 additions and 0 deletions
|
@ -56,10 +56,15 @@ IF(LIBNFC_DEBUG_OUTPUT)
|
||||||
ADD_DEFINITIONS(-DDEBUG -g3)
|
ADD_DEFINITIONS(-DDEBUG -g3)
|
||||||
ENDIF(LIBNFC_DEBUG_OUTPUT)
|
ENDIF(LIBNFC_DEBUG_OUTPUT)
|
||||||
|
|
||||||
|
# CMake have config.h generation, so we must define this
|
||||||
ADD_DEFINITIONS("-DHAVE_CONFIG_H")
|
ADD_DEFINITIONS("-DHAVE_CONFIG_H")
|
||||||
|
|
||||||
|
# Make sure we will not miss some warnings ;)
|
||||||
ADD_DEFINITIONS(-Wall -pedantic -std=c99)
|
ADD_DEFINITIONS(-Wall -pedantic -std=c99)
|
||||||
|
|
||||||
|
# Workarounds for libusb in C99
|
||||||
|
ADD_DEFINITIONS(-Du_int8_t=uint8_t -Du_int16_t=uint16_t)
|
||||||
|
|
||||||
IF(NOT MSVC)
|
IF(NOT MSVC)
|
||||||
# Set some pkg-config variables
|
# Set some pkg-config variables
|
||||||
SET(prefix ${CMAKE_INSTALL_PREFIX})
|
SET(prefix ${CMAKE_INSTALL_PREFIX})
|
||||||
|
|
Loading…
Reference in a new issue