# The following five 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.16) # Disable C++ thread-safe statics to avoid pthread dependency add_compile_options($<$:-fno-threadsafe-statics>) set(EXTRA_COMPONENT_DIRS "${CMAKE_CURRENT_LIST_DIR}/components") include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(bme680_esp8266 C) # Force the app to link as C (prevents pulling libstdc++) idf_build_get_property(APP_TARGET EXECUTABLE) # provided by IDF's CMake set_target_properties(${APP_TARGET} PROPERTIES LINKER_LANGUAGE C)