mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-04-11 00:56:18 +00:00
Add workaround for libusb while using CMake.
This commit is contained in:
@@ -56,10 +56,15 @@ IF(LIBNFC_DEBUG_OUTPUT)
|
||||
ADD_DEFINITIONS(-DDEBUG -g3)
|
||||
ENDIF(LIBNFC_DEBUG_OUTPUT)
|
||||
|
||||
# CMake have config.h generation, so we must define this
|
||||
ADD_DEFINITIONS("-DHAVE_CONFIG_H")
|
||||
|
||||
# Make sure we will not miss some warnings ;)
|
||||
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)
|
||||
# Set some pkg-config variables
|
||||
SET(prefix ${CMAKE_INSTALL_PREFIX})
|
||||
|
||||
Reference in New Issue
Block a user