diff --git a/drivers/sensor/adt7310/CMakeLists.txt b/drivers/sensor/adt7310/CMakeLists.txt index 91b77949d8b..ad7205182ed 100644 --- a/drivers/sensor/adt7310/CMakeLists.txt +++ b/drivers/sensor/adt7310/CMakeLists.txt @@ -2,5 +2,5 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_ADT7310 adt7310.c) +zephyr_library_sources(adt7310.c) zephyr_library_sources_ifdef(CONFIG_ADT7310_TRIGGER adt7310_trigger.c) diff --git a/drivers/sensor/bmi08x/CMakeLists.txt b/drivers/sensor/bmi08x/CMakeLists.txt index a3a13c2390a..0282cc73d20 100644 --- a/drivers/sensor/bmi08x/CMakeLists.txt +++ b/drivers/sensor/bmi08x/CMakeLists.txt @@ -2,8 +2,8 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_BMI08X bmi08x_accel.c) -zephyr_library_sources_ifdef(CONFIG_BMI08X bmi08x_gyro.c) -zephyr_library_sources_ifdef(CONFIG_BMI08X bmi08x.c) +zephyr_library_sources(bmi08x_accel.c) +zephyr_library_sources(bmi08x_gyro.c) +zephyr_library_sources(bmi08x.c) zephyr_library_sources_ifdef(CONFIG_BMI08X_ACCEL_TRIGGER bmi08x_accel_trigger.c) zephyr_library_sources_ifdef(CONFIG_BMI08X_GYRO_TRIGGER bmi08x_gyro_trigger.c) diff --git a/drivers/sensor/ds18b20/CMakeLists.txt b/drivers/sensor/ds18b20/CMakeLists.txt index d95181e74c1..e7a2a706f86 100644 --- a/drivers/sensor/ds18b20/CMakeLists.txt +++ b/drivers/sensor/ds18b20/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_DS18B20 ds18b20.c) +zephyr_library_sources(ds18b20.c) diff --git a/drivers/sensor/max31855/CMakeLists.txt b/drivers/sensor/max31855/CMakeLists.txt index 6ee5f2df493..b3ef4064956 100644 --- a/drivers/sensor/max31855/CMakeLists.txt +++ b/drivers/sensor/max31855/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_MAX31855 max31855.c) +zephyr_library_sources(max31855.c) diff --git a/drivers/sensor/pcnt_esp32/CMakeLists.txt b/drivers/sensor/pcnt_esp32/CMakeLists.txt index 3445c493e55..1dadd4c6cd8 100644 --- a/drivers/sensor/pcnt_esp32/CMakeLists.txt +++ b/drivers/sensor/pcnt_esp32/CMakeLists.txt @@ -2,4 +2,4 @@ zephyr_library() -zephyr_library_sources_ifdef(CONFIG_PCNT_ESP32 pcnt_esp32.c) +zephyr_library_sources(pcnt_esp32.c)