Files
esp-idf/examples/protocols/mqtt/CMakeLists.txt
2026-07-16 10:54:36 +07:00

15 lines
618 B
CMake

# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.22)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(mqtt_ssl)
# TODO IDF-15784: remove
# mqtt upstream sets locals without reading them; silence -Wunused-but-set-variable
idf_component_get_property(mqtt_lib espressif__mqtt COMPONENT_LIB)
target_compile_options(${mqtt_lib} PRIVATE -Wno-unused-but-set-variable)