aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-03-31 19:50:14 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-04-03 13:20:58 +0200
commit5853af1966adf981f19510e06b3fb81cfb8d7b60 (patch)
treef83d0b8976149b39447fb5f792e5ce0911bc42fa
parent9782076fd0c80385f48e2a3c4c61c9dda06841b3 (diff)
downloadlibnitrokey-5853af1966adf981f19510e06b3fb81cfb8d7b60.tar.gz
libnitrokey-5853af1966adf981f19510e06b3fb81cfb8d7b60.tar.bz2
Do not abort compilation on warnings in hid.c on OSX
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7c379da..5fea2f6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -98,6 +98,9 @@ if (NOT MSVC)
set(COMPILE_FLAGS "${COMPILE_FLAGS} -Werror")
endif()
SET_TARGET_PROPERTIES(${LIBNAME} ${LIBNAME}-log PROPERTIES COMPILE_FLAGS ${COMPILE_FLAGS} )
+ IF(APPLE)
+ SET_TARGET_PROPERTIES(hidapi-libusb PROPERTIES COMPILE_FLAGS "" )
+ ENDIF()
endif()
SET_TARGET_PROPERTIES(${LIBNAME} PROPERTIES COMPILE_DEFINITIONS "NO_LOG")