mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
CMakeList: detect ESP_PLATFORM for ESP32
This commit is contained in:
parent
e4ec282987
commit
6b348a54bd
1 changed files with 7 additions and 0 deletions
|
@ -129,6 +129,13 @@ option(LWS_WITH_ASAN "Build with gcc runtime sanitizer options enabled (needs li
|
|||
# End of user settings
|
||||
#
|
||||
|
||||
# Workaround for ESP-IDF
|
||||
# Detect ESP_PLATFORM environment flag, if exist, set LWS_WITH_ESP32.
|
||||
# Otherwise the user may not be able to run configuration ESP-IDF in the first time.
|
||||
if(ESP_PLATFORM)
|
||||
set(LWS_WITH_ESP32 ON)
|
||||
endif()
|
||||
|
||||
if (LWS_FOR_GITOHASHI)
|
||||
set(LWS_WITH_THREADPOOL 1)
|
||||
set(LWS_WITH_HTTP2 1)
|
||||
|
|
Loading…
Add table
Reference in a new issue