| From ac33a37507858f6c5ffac8f34541be56cf6b05d1 Mon Sep 17 00:00:00 2001 |
| From: Gyorgy Szing <Gyorgy.Szing@arm.com> |
| Date: Thu, 12 May 2022 21:45:56 +0200 |
| Subject: [PATCH 3/3] Fix: stop overriding C_FLAGS from environment. |
| |
| Directly setting CMAKE_C_FLAGS is bad practice as it is overriding |
| values taken from C_FLAGS environment variable or from |
| CMAKE_C_FLAGS_INIT. The latter is used in toolchain files or in |
| initial cache files. |
| |
| Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com> |
| --- |
| CMakeLists.txt | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/CMakeLists.txt b/CMakeLists.txt |
| index c4d91c5..a9a5bef 100644 |
| --- a/CMakeLists.txt |
| +++ b/CMakeLists.txt |
| @@ -4,7 +4,7 @@ project(qcbor |
| LANGUAGES C |
| VERSION 1.0.0) |
| |
| -set(CMAKE_C_FLAGS "-pedantic -Wall -O3 -ffunction-sections") |
| +add_compile_options(-pedantic -Wall -O3 -ffunction-sections) |
| |
| include_directories(inc) |
| |
| -- |
| 2.35.0.windows.1 |
| |