drivers: sensor: fix cmake empty library warning
When there is no sensor driver enabled, cmake warns that
the library has no sources. Fix that by wrapping cmake
library instructions inside kconfig.
Fixes #37765
Signed-off-by:
Daniel Leung <daniel.leung@intel.com>
Loading
Please sign in to comment