diff --git a/.github/workflows/target-test.yml b/.github/workflows/target-test.yml index 599927961..a7ffe4fe2 100644 --- a/.github/workflows/target-test.yml +++ b/.github/workflows/target-test.yml @@ -23,7 +23,7 @@ jobs: container: espressif/idf:${{ matrix.idf_ver }} steps: - name: Checkout esp-protocols - uses: actions/checkout@master + uses: actions/checkout@v3 with: path: esp-protocols - name: Build ${{ matrix.example }} with IDF-${{ matrix.idf_ver }} for ${{ matrix.idf_target }} diff --git a/components/esp_modem/CMakeLists.txt b/components/esp_modem/CMakeLists.txt index abe1d0eb2..404b74a22 100644 --- a/components/esp_modem/CMakeLists.txt +++ b/components/esp_modem/CMakeLists.txt @@ -14,6 +14,7 @@ else() set(dependencies driver esp_event esp_netif) endif() + set(srcs ${platform_srcs} "src/esp_modem_dte.cpp" "src/esp_modem_dce.cpp" @@ -34,12 +35,14 @@ idf_component_register(SRCS "${srcs}" PRIV_INCLUDE_DIRS private_include REQUIRES ${dependencies}) + set_target_properties(${COMPONENT_LIB} PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON CXX_EXTENSIONS ON ) + if(${target} STREQUAL "linux") # This is needed for ESP_LOGx() macros, as integer formats differ on ESP32(..) and x64 set_target_properties(${COMPONENT_LIB} PROPERTIES COMPILE_FLAGS -Wno-format) diff --git a/components/esp_modem/examples/ap_to_pppos/main/CMakeLists.txt b/components/esp_modem/examples/ap_to_pppos/main/CMakeLists.txt index 0aa789788..ae3dbac78 100644 --- a/components/esp_modem/examples/ap_to_pppos/main/CMakeLists.txt +++ b/components/esp_modem/examples/ap_to_pppos/main/CMakeLists.txt @@ -7,3 +7,4 @@ endif() idf_component_register(SRCS "ap_to_pppos.c" ${NETWORK_DCE} INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/esp_modem/idf_component.yml b/components/esp_modem/idf_component.yml index 048f0830b..798dd7d17 100644 --- a/components/esp_modem/idf_component.yml +++ b/components/esp_modem/idf_component.yml @@ -1,4 +1,4 @@ -version: "0.1.18" +version: "0.1.19" description: esp modem url: https://github.com/espressif/esp-protocols/tree/master/components/esp_modem dependencies: diff --git a/components/mdns/tests/test_apps/main/CMakeLists.txt b/components/mdns/tests/test_apps/main/CMakeLists.txt index b5902d589..45b06ffa3 100644 --- a/components/mdns/tests/test_apps/main/CMakeLists.txt +++ b/components/mdns/tests/test_apps/main/CMakeLists.txt @@ -1,2 +1,3 @@ idf_component_register(SRCS "main.c" "mdns_test.c" INCLUDE_DIRS ".") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")