From bcb9a3141b437a7bf9b0c5d0ecb9fe576ca45a67 Mon Sep 17 00:00:00 2001 From: Xavrax Date: Thu, 27 Jun 2024 19:15:41 +0200 Subject: [PATCH] fix cmake --- CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ee22468..7654ef51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,7 +42,7 @@ endfunction() message(STATUS "Options (Enabled *):") log_option(OPENSSL "Use OpenSSL" OFF) -num_option(MBEDTLS "Use mbedTLS" ON) +num_option(MBEDTLS "Use mbedTLS" OFF) log_option(EXAMPLES "Build all examples" OFF) log_option(SHARED_LIB "Library type. [SHARED=ON STATIC=OFF]" OFF) log_option(WITH_CPP "Build the CPP headers" OFF) @@ -518,6 +518,7 @@ if(NOT ESP_PLATFORM) endif() endif() + string(STRIP ${LDLIBS} LDLIBS) target_link_libraries(pubnub ${LDLIBS} ${SSL_LINK_LIBRARIES}) else() message(STATUS "Building ESP32 IDF component") @@ -550,13 +551,10 @@ else() freertos lwip) endif() - - endif() if (NOT ESP_PLATFORM) - string(STRIP ${LDLIBS} LDLIBS) - target_link_libraries(pubnub ${LDLIBS} ${SSL_LINK_LIBRARIES}) + endif() # TODO: C++ support for ESP32 platform