Skip to content

Commit

Permalink
module/cmake: simplify thanks to the new add_local_sources() macro
Browse files Browse the repository at this point in the history
Leverage the previous commit.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information
marc-hb authored and lgirdwood committed Nov 29, 2023
1 parent 330d73e commit b53f2b0
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/module/audio/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause

is_zephyr(it_is)
if(it_is) ### Zephyr ###
zephyr_library_sources(
source_api.c
sink_api.c
)
else() ### Not Zephyr ###
add_local_sources(sof
source_api.c
sink_api.c
)
endif() # Zephyr
add_local_sources(sof
source_api.c
sink_api.c
)

0 comments on commit b53f2b0

Please sign in to comment.