mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
NuttX add compiler dependent: disable no-stringop-truncation
This commit is contained in:
committed by
Daniel Agar
parent
4d64065422
commit
c49c767d78
@@ -156,6 +156,9 @@ add_custom_command(
|
||||
)
|
||||
add_custom_target(nuttx_copy_config_dir_target DEPENDS ${PX4_BINARY_DIR}/NuttX/nuttx_copy_config_dir.stamp)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 9.3)
|
||||
set(CMAKE_C_COMP_DEP_FLAGS -Wno-stringop-truncation)
|
||||
endif()
|
||||
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Make.defs.in ${NUTTX_DIR}/Make.defs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user