Skip to content

Commit b2b411d

Browse files
tejlmandnashif
authored andcommitted
cmake: remove target_compile_definitions() in zephyr_library_property
Fixes: #38761 The introduction of zephyr_library_property in #38347 contained a stray function call `target_compile_definitions()` resulting in the library property name and value to also be added compile definitions to the Zephyr library. The Zephyr library property is an internal property and is not supposed to be added as compile definitions, and thus this call is removed with this commit. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent 6083b89 commit b2b411d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cmake/extensions.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,6 @@ endfunction()
577577
function(zephyr_library_property)
578578
set(single_args "ALLOW_EMPTY")
579579
cmake_parse_arguments(LIB_PROP "" "${single_args}" "" ${ARGN})
580-
target_compile_definitions(${ZEPHYR_CURRENT_LIBRARY} PRIVATE ${item} ${ARGN})
581580

582581
if(LIB_PROP_UNPARSED_ARGUMENTS)
583582
message(FATAL_ERROR "zephyr_library_property(${ARGV0} ...) given unknown arguments: ${FILE_UNPARSED_ARGUMENTS}")

0 commit comments

Comments
 (0)