From a2db28275cd0ab266c936da5722239127eff98d8 Mon Sep 17 00:00:00 2001 From: fei4xu <46098686+fei4xu@users.noreply.github.com> Date: Fri, 6 Nov 2020 01:03:50 +0800 Subject: [PATCH] fix yocto cross build error: 'string.h ' not found (#487) Co-authored-by: uib51588 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eff71f1..7e34d34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,7 @@ endif(NOT DEFINED CMAKE_BUILD_TYPE) if (DEFINED UNIX) # None -set(CMAKE_C_FLAGS "-Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs") set(CMAKE_CXX_FLAGS "-Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs") # Debug set(CMAKE_C_FLAGS_DEBUG "-g")