summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroyuki Ishii <ishii.hiroyuki002@jp.panasonic.com>2021-10-26 17:27:59 +0900
committerHiroyuki Ishii <ishii.hiroyuki002@jp.panasonic.com>2021-10-26 17:27:59 +0900
commit3ef96b9efb7c80f3f7a731379dcbfa9a21e2ceed (patch)
tree56339a0b399e17626dd676e510ced9e7957c8f36
parentfa8ad7927ede4f2a825021d13a8024742b8cb225 (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: I02989cb6c48c564af90ac0420447c36de5281131
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bdf2375..4ca449a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,7 +16,7 @@ find_package(PkgConfig)
option(DEBUG_BUILD "This is debug build." OFF)
# set gcc flags
-set(CMAKE_C_FLAGS "-Wall -O2")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O2")
if(DEBUG_BUILD)
add_definitions(-DDEBUG)