Skip to main content
Visitor II
March 28, 2023
Question

Recursive search of target sources instead of defined source directories

  • March 28, 2023
  • 0 replies
  • 1048 views

During auto generation of the st-project.cmake, it seems that the import tool recursively searches the project for source files instead of using the paths defined by the project's source locations. For example, I have the following defined as my source locations.

0693W00000aJoEFQA0.pngHowever, when the target_sources are generated, all source files in the workspace are added. The compilation then fails because the include files can not be found in the supplied include directories. If I manually remove the extra source files the build succeeds.

    This topic has been closed for replies.