Skip to content

Commit 47914cb

Browse files
SebastianBoegalak
authored andcommitted
cmake: Fix how compile definition is added
The compile definition ENET_ENHANCEDBUFFERDESCRIPTOR_MODE has been added by modifying the build environment of the 'zephyr' library. But modifying this library is not supported. The intention was to modify the global build environment, so we change to use the zephyr_ API instead of the zephyr_library_ API as this API will behave as intended. Signed-off-by: Sebastian Bøe <[email protected]>
1 parent 97265a5 commit 47914cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mcux/drivers/kinetis/CMakeLists.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
zephyr_include_directories(.)
88

9-
zephyr_library_compile_definitions_ifdef(
10-
CONFIG_PTP_CLOCK_MCUX ENET_ENHANCEDBUFFERDESCRIPTOR_MODE
9+
zephyr_compile_definitions_ifdef(
10+
CONFIG_PTP_CLOCK_MCUX
11+
ENET_ENHANCEDBUFFERDESCRIPTOR_MODE
1112
)
1213

1314
zephyr_sources_ifdef(CONFIG_HAS_MCUX_CACHE fsl_cache.c)

0 commit comments

Comments
 (0)