2024-06-19 02:24 AM - edited 2024-06-20 12:34 AM
Hello
After some work with STM32CubeMX CMake generation and discussions with good CMake user, I really think that, when generating a projet with STM32CubeMX, it should not be an INTERFACE library (or at least not only that)
As a CMake user said to me, the purpose of INTERFACE library is the following:
When a target represents some collection of requirements that doesn’t involve an actual library file. For example, a collection of flags or includes.
The main problems I have when using the current CMake generation:
For me, STM32CubeMX CMake generated project should be more like that:
Integrating CMake project generation in STM32CubeMX is really a good idea. For me it is really a major improvement of the Cube suite. But for now it is not usable without some modifications.
I would be really happy to talk of the subject with ST employees and to see (some of) those modifications integrated in the next STM32CubeMX.
Regards
Antoine
2024-06-20 08:04 AM
Hello @ANauz.1 ,
Thank you for having reported the point.
Your request is escalated internally to our team to be analyzed through ticket number: 184662.
We will be back to you as soon as possible.
(PS: ticket number 184662 is an internal tracking number and is not accessible outside of ST)
2024-06-22 04:55 AM - edited 2024-06-22 04:56 AM
Same issue here! It's really frustrating, for now I've come up with this workaround, for everyone new to this issue/problem.
https://community.st.com/t5/stm32cubemx-mcus/stm32cubemx-cmake-code-generation/td-p/688678