blob: 25bd279fa646a4f4ef6032f052215350e8b099cb [file] [log] [blame]
Gyorgy Szing23e78d32022-03-05 01:49:02 +00001From c435e364e7fc505e59db2f1ec40bb5f62e591f80 Mon Sep 17 00:00:00 2001
2From: Gyorgy Szing <Gyorgy.Szing@arm.com>
3Date: Wed, 18 May 2022 22:54:47 +0000
4Subject: [PATCH 1/3] Introduce a way to allow setting macro definitions
5 externally.
6
7Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
8---
9 CMakeLists.txt | 5 ++++-
10 1 file changed, 4 insertions(+), 1 deletion(-)
11
12diff --git a/CMakeLists.txt b/CMakeLists.txt
13index 8a5bcd0..59dbb54 100644
14--- a/CMakeLists.txt
15+++ b/CMakeLists.txt
16@@ -8,12 +8,15 @@ set(CMAKE_C_FLAGS "-pedantic -Wall -O3 -ffunction-sections")
17
18 include_directories(inc)
19
20+
21+add_definitions(${thirdparty_def})
22+
23 set(SOURCE
24 src/ieee754.c
25 src/qcbor_decode.c
26 src/qcbor_encode.c
27 src/qcbor_err_to_str.c
28 src/UsefulBuf.c
29-)
30+)
31
32 add_library(qcbor ${SOURCE})
33--
342.17.1
35