drivers: console: fix cmake empty library warning
When there is no console driver enabled, cmake warns that
the library has no sources. So only include the console
directory when CONFIG_CONSOLE is enabled.
Signed-off-by:
Daniel Leung <daniel.leung@intel.com>
Loading
Please sign in to comment