Replies: 3 comments 2 replies
-
Please provide the details about the project and steps to reproduce your issue. |
Beta Was this translation helpful? Give feedback.
-
@Biswa96 : I've generated a makefile project with STM32CubeMx. After that I modified it to use CMake to be able to build (as best as I could) and created an object library out of it and added another object library to function as the project code in C++. The project is intended to work in VS Code. The project is included in the attachment. @MehdiChinoune : If I'm not mistaken I'm using cmake from MSYS ( For your information, a full list of the packages I'm using:
EDIT: Added missing package. |
Beta Was this translation helpful? Give feedback.
-
Just running into same issue. It could maybe depend on the compiler used. A mingw compiler will output windows paths for deps, which might confuse a msys cmake. |
Beta Was this translation helpful? Give feedback.
-
I'm not certain if I should go here to ask questions but I've noticed something with the CMake package that CMake for windows doesn't do. The file
compiler_depends.make
produces wrong paths for all dependencies. I'm not familiar with CMake so I might make a mistake somewhere, however, when CMake for windows is used it actually produces correct relative paths like../STM32Core/Core/Src/adc.c
. However, for the cmake package installed through MSYS2 it producesSTM32Core/C/:/Users/UserName/Documents/repos/Flumbler/src/STM32Core/Core/Src/adc.c
which is a completely invalid path.Could anyone give me some suggestions on what is going on here? Again, CMake for windows doesn't do this.
Snippet of compiler_depend.make:
STM32Core/CMakeFiles/STM32Core.dir/Core/Src/adc.c.obj: ../STM32Core/Core/Src/adc.c \ STM32Core/C/:/Users/UserName/Documents/repos/Flumbler/src/STM32Core/Core/Src/adc.c \ STM32Core/C/:/Users/UserName/Documents/repos/Flumbler/src/STM32Core/Core/Inc/adc.h \ STM32Core/C/:/Users/UserName/Documents/repos/Flumbler/src/STM32Core/Core/Inc/main.h \
Beta Was this translation helpful? Give feedback.
All reactions