You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into this issue even for the RA examples that have multiple subfolders in the src/ directory.
These sub folders don't get taken into account in the cmake source files when generating the configuration.
Modifying the cmake/GeneratedSrc.cmake file and adding the paths is a solution but it gets overwritten each time the configuration is regenerated.
The src/ folder in our project looks like this to separate concerns:
driver/
hci/
motor/
hal_entry.c
The contents of driver/, hci/, motor/ don't get taken into account as source and include folders in the cmake build.
But changing anything here doesn't do anything. The file gets overwritten to defaults on configuration regeneration.
EDIT:
I wanted to amend this with a correction: source files under src/ actually do get picked up correctly thanks to GLOB_RECURSE in file(). But target_include_directories() fails to include all subfolders of src/. I can edit cmake/GeneratedSrc.cmake manually and add them like this:
Thanks. I added a correction to my earlier post. Source files under src/ do get picked up correctly, it's an issue with the missing include directories.
Hello,
I found a forum thread that pinpoints this problem but it doesn't let me reply to it so I'm posting this here
https://community.renesas.com/mcu-mpu/ra/f/forum/34016/adding-additional-source-path-and-include-path-to-visual-studio-code-build-extension
I'm running into this issue even for the RA examples that have multiple subfolders in the
src/
directory.These sub folders don't get taken into account in the cmake source files when generating the configuration.
Modifying the
cmake/GeneratedSrc.cmake
file and adding the paths is a solution but it gets overwritten each time the configuration is regenerated.The
src/
folder in our project looks like this to separate concerns:The contents of
driver/
,hci/
,motor/
don't get taken into account as source and include folders in the cmake build.There's a
buildinfo.json
withBut changing anything here doesn't do anything. The file gets overwritten to defaults on configuration regeneration.
EDIT:
I wanted to amend this with a correction: source files under
src/
actually do get picked up correctly thanks toGLOB_RECURSE
infile()
. Buttarget_include_directories()
fails to include all subfolders ofsrc/
. I can editcmake/GeneratedSrc.cmake
manually and add them like this:And it finds everything without issue. But on the next regeneration the file will be overwritten.
The text was updated successfully, but these errors were encountered: