fix yocto cross build error: 'string.h ' not found (#487)

Co-authored-by: uib51588 <fei.4.xu@continental.com>
This commit is contained in:
fei4xu 2020-11-06 01:03:50 +08:00 committed by GitHub
parent 84ec5c634c
commit a2db28275c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")