xmos / xcore_iot

Other
30 stars 40 forks source link

Bugfix/cmake library specific flags #387

Closed xmos-jmccarthy closed 2 years ago

xmos-jmccarthy commented 2 years ago

Fixes issue related to INTERFACE libraries.

INTERFACE libraries resulted in what was desired to be library specific flags, instead being appended to top level flags. This led to unexpected compile options being used.

This fix changes apps, examples, and tests into the root of the CMake build structure. It also assigns INTERFACE library specific flags to the sources instead. These two changes combined allow the top level build to use the correct per library flags as well a s the desired application flags.