From 464ed5a672700436a1cb89d41afe8c088d2f3c5b Mon Sep 17 00:00:00 2001 From: Hiroyuki Ishii Date: Tue, 26 Oct 2021 16:38:47 +0900 Subject: build: Fix broken CMAKE_C_FLAGS Before this fix, CMAKE_C_FLAGS's values assigned from environment was incorrectly overwritten and that prevents inheritance of compile flags from build systems such as bitbake. So let's fix it. BUG-AGL: SPEC-3952 Signed-off-by: Hiroyuki Ishii Change-Id: I4a66bd06ac304a890053e216b6028eb62323bed6 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6db6abb..607d036 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ project(cluster_ipc C) cmake_minimum_required(VERSION 2.8) # set gcc flags -set(CMAKE_C_FLAGS "-Wall -O2") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O2") # Build option for DEBUG option(DEBUG_BUILD "This is debug build." OFF) -- cgit 1.2.3-korg