Page 1 of 1

Set components in build system based on configuration

Posted: Tue Jul 18, 2023 7:44 am
by marware
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