diff --git a/drivers/ptp_clock/CMakeLists.txt b/drivers/ptp_clock/CMakeLists.txt index 6ece3042a45..719dc0398a7 100644 --- a/drivers/ptp_clock/CMakeLists.txt +++ b/drivers/ptp_clock/CMakeLists.txt @@ -1,3 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 -zephyr_sources_ifdef(CONFIG_PTP_CLOCK ptp_clock.c) +zephyr_library() + +zephyr_library_sources_ifdef(CONFIG_PTP_CLOCK ptp_clock.c)