USCRPL / mbed-cmake

Use the power of CMake to create your MBed applications
36 stars 9 forks source link

Pass custom profile.json #16

Closed ladislas closed 4 years ago

ladislas commented 4 years ago

When using mbed-cli, I pass a custom profile with additional options like this:

mbed compile -m DISCO_ORIGINAL --profile=release --profile=./profiles/leka.json

How can I do the same with mbed-cmake? (it must be super simple but I can seem to find it...)

multiplemonomials commented 4 years ago

Currently this doesn't exist sadly. It would require some modifications to configure_for_target.py. I am wondering, is there anything that you can do with a profile.json that you can't also do by adding flags in CMake?

ladislas commented 4 years ago

I am wondering, is there anything that you can do with a profile.json that you can't also do by adding flags in CMake?

No, that's what I figured and what I'll do! Thanks for the answer :)