Skip to content

cmake_utilities appears broken (BSP-778) #712

@dannybackx

Description

@dannybackx

Board

N/A

Hardware Description

N/A

IDE Name

None

Operating System

Linux

Description

Can't get cmake_utilities to work to produce version macros for espressif/esp_lvgl_port .

Sketch

#include <build.h>
#include <esp_log.h>
#include <freertos/FreeRTOS.h>

extern "C" void app_main(void)
{
  ESP_LOGI("App", "Minimal (really) app");

  while(true) {
    vTaskDelay(pdMS_TO_TICKS(200));
  }
}

Other Steps to Reproduce

idf.py add-dependency cmake_utilities
idf.py add-dependency esp_lvgl_port
idf.py build

then edit managed_components/espressif__esp_lvgl_port/CMakeLists.txt to include

include(package_manager)
cu_pkg_define_version(${CMAKE_CURRENT_LIST_DIR})

just after the idf_component_register call.

Then rebuild.
Error message :

-- ESP_LVGL_PORT: 2.7.0
CMake Error at managed_components/espressif__cmake_utilities/package_manager.cmake:43 (target_compile_options):
  target_compile_options may only set INTERFACE properties on INTERFACE
  targets
Call Stack (most recent call first):
  managed_components/espressif__esp_lvgl_port/CMakeLists.txt:27 (cu_pkg_define_version)

See also #696

I have checked existing issues, README.md and ESP32 Forum

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions