Add workaround for libusb while using CMake.
Romuald Conty
14 years ago
55 | 55 | ADD_DEFINITIONS(-DDEBUG -g3) |
56 | 56 | ENDIF(LIBNFC_DEBUG_OUTPUT) |
57 | 57 | |
58 | # CMake have config.h generation, so we must define this | |
58 | 59 | ADD_DEFINITIONS("-DHAVE_CONFIG_H") |
59 | 60 | |
61 | # Make sure we will not miss some warnings ;) | |
60 | 62 | ADD_DEFINITIONS(-Wall -pedantic -std=c99) |
63 | ||
64 | # Workarounds for libusb in C99 | |
65 | ADD_DEFINITIONS(-Du_int8_t=uint8_t -Du_int16_t=uint16_t) | |
61 | 66 | |
62 | 67 | IF(NOT MSVC) |
63 | 68 | # Set some pkg-config variables |