Page 1 of 1

Disabling -Werror=all

Posted: Mon Jul 03, 2023 11:17 am
by jendo42
How can I disable -Werror=all for esp-idf v5.1? I tried this

Code: Select all

project(xyz)
idf_build_set_property(
	COMPILE_OPTIONS
		"-Wno-error"
	APPEND
)
or this

Code: Select all

add_compile_options(
	-Wno-error
)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(xyz)
but it does not work and it's really anoying because can't build IDF internal components