mirror of
https://github.com/espressif/esp-modbus.git
synced 2026-08-03 20:24:09 +02:00
11 lines
455 B
CMake
11 lines
455 B
CMake
set(PROJECT_NAME "modbus_console_helper_test")
|
|
|
|
idf_component_register(SRCS "mb_console_app.c"
|
|
REQUIRES mb_console_helper console)
|
|
|
|
# Workaround to avoid static analysis false positives for some components.
|
|
if(CONFIG_FMB_COMPILER_STATIC_ANALYZER_ENABLE AND CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
|
target_compile_options(${COMPONENT_LIB} PRIVATE "-fanalyzer")
|
|
message(STATUS "Static analyzer build for ${PROJECT_NAME}.")
|
|
endif()
|