1
0
Fork 0
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:
Jackson Ming Hu 2019-07-01 14:48:43 +01:00 committed by Andy Green
parent e4ec282987
commit 6b348a54bd

View file

@ -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)