apache / mynewt-newt

An OS to build, deploy and securely manage billions of devices
https://mynewt.apache.org/
Apache License 2.0
117 stars 95 forks source link

Compiler flags $(...) pattern not expanded in CmakeList.txt #516

Closed kasjer closed 1 year ago

kasjer commented 1 year ago

If compier.yml has $(EXAMPE_FLAGS) pattern it works correct when target is build however when cmake project file CMakeList.txt is generated final link target has this pattern not expanded like this:

set_property(TARGET cmake_demo.elf APPEND_STRING
             PROPERTY
             COMPILE_FLAGS
             "$\\(EXAMPE_FLAGS\\) -DAPP_NAME=demo -DAPP_demo
kasjer commented 1 year ago

Fixed by #522