summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroyuki Ishii <ishii.hiroyuki002@jp.panasonic.com>2021-10-26 16:38:47 +0900
committerHiroyuki Ishii <ishii.hiroyuki002@jp.panasonic.com>2021-10-26 17:17:05 +0900
commit464ed5a672700436a1cb89d41afe8c088d2f3c5b (patch)
treec112c9519dee0fdd0dfcf66289ecc25bccff4a2c
parentb27fb69aa966866920e86b10f7d10326a0042e33 (diff)
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 <ishii.hiroyuki002@jp.panasonic.com> Change-Id: I4a66bd06ac304a890053e216b6028eb62323bed6
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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)