Set components in build system based on configuration

marware
Posts: 4
Joined: Sat Feb 12, 2022 8:15 pm

Set components in build system based on configuration

Postby marware » Tue Jul 18, 2023 7:44 am

Hi,

I'm trying to trim a number of components being built via command in top CMakeLists.txt:

Code: Select all

set(COMPONENTS main mqtt tcp_transport ... )
The problem here is that I can not access the configuration defines from KConfig, so I can't omit components that I don't want to be built.

Is there any other option to avoid building components that based on configuration won't be used?

Regards,
Marko

Who is online

Users browsing this forum: Baidu [Spider] and 72 guests