Skip to content

Commit

Permalink
fix cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavrax committed Jun 27, 2024
1 parent d47622a commit bcb9a31
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bcb9a31

Please sign in to comment.