From 51d40af9b280fdf05a3b783f9f15cb46c33cb356 Mon Sep 17 00:00:00 2001 From: Jakob Hasse <0xjakob@users.noreply.github.com> Date: Wed, 31 May 2023 18:42:18 +0800 Subject: [PATCH] fix: added pthread dependency * pthread is necessary if the parts of libstdc++ are used which rely on semaphore.h --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a6eb0e9..1fd8161 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ if(NOT ${target} STREQUAL "linux") list(APPEND srcs "esp_event_api.cpp" "esp_event_cxx.cpp") - list(APPEND requires "esp_event") + list(APPEND requires "esp_event" "pthread") endif() idf_component_register(SRCS ${srcs}