Re: cmake is not recognizing board variable set in CMakeLists.txt


Marti Bolivar <marti@...>
 

On Tue, Sep 18, 2018 at 4:04 AM Sathishkumar Duraisamy
<bewithsathish@...> wrote:


On Tue, Sep 18, 2018 at 3:29 PM, Sathishkumar Duraisamy <bewithsathish@...> wrote:

Hi all,

I am Sathishkumar. I am experimenting with zephyr and learning to contribute to it. I am coming form Linux and feels home with kconfig, dts, etc.

As per the application primer, I have set(BOARD qemu_cortex_m3) in CMakeLists.txt. But cmake complaints :

BOARD is not being defined on the CMake command-line in the environment or
by the app.

Are this expected?

It seems set(BOARD qemu_cortex_m3) has to be in the beginning of the file after cmake version. It works.
The important thing is it must be set before you include the boilerplate file.



Regards,
Sathishkumar D
https://sathishscripts.ccom



--
Regards,
Sathishkumar D

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