flag for board type issue

KAY LI NG <kayli0109@...>

Hi there,

I have a question.
I specified the flag for board type to build, it works.
But when i specify the flag for another board type, it still targets to the previous board. 

$ cmake -Bbuild -GNinja -DBOARD=sam_e70_xplained samples/hello_world

$ cmake -Bbuild -GNinja -DBOARD=qemu_x86 samples/hello_world


If i delete the build directory and specified the board type again, it works.
Is that a problem?
Or any other ways to simplify this?

Kay Li

Join users@lists.zephyrproject.org to automatically receive all group messages.