Set components in build system based on configuration
Posted: 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:
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
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 ... )
Is there any other option to avoid building components that based on configuration won't be used?
Regards,
Marko