Skip to content

Clarification about cmake targets #358

Description

@maruncz

Hi, I'm trying to use this template for my project and I'm bit confused about targets to link to.

Based on your readme, CMSIS contains family specific headers like U5, but i allways thought that CMSIS only contains ARM stuff, like core type.
Your readme also describes HAL targets and i probably understand them.

When i was transfering my project into this template, I noticed that components that are not dependent on any platform were missing -mcpu ... flags. I looked into toolchain files and found STM32::U5 which seem to contain them. Right now i link this target to all my targets. I guess that tis is a way to support multiple cpus in one project, but it also complicates linking third party libraries, beacue i have to add STM32::U5 as dependency to all targets inside those libraries and i may not be able to add it to all targets. What is the correct approach in this scenario?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions