Skip to content

Commit

Permalink
Sed wor fix (#101)
Browse files Browse the repository at this point in the history
Co-authored-by: Anvesh Nookala <[email protected]>
  • Loading branch information
nookfoo and Anvesh Nookala authored Nov 18, 2024
1 parent fec973f commit 22fab1a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions cmake/utils/sed_wor/sed_wor.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ function(sed_wor IP_LIB BINARY_DIR SOURCES)
COMMENT "Generating stamp file after sed commands."
)

add_custom_target(
${IP_LIB}_sed_wor
DEPENDS ${STAMP_FILE}
)
if(NOT TARGET ${IP_LIB}_sed_wor)
add_custom_target(
${IP_LIB}_sed_wor
DEPENDS ${STAMP_FILE}
)

add_dependencies(${IP_LIB}_sed_wor ${IP_LIB})

add_dependencies(${IP_LIB}_sed_wor ${IP_LIB})
endif()

# Return modified sources
set(SED_WOR_SOURCES ${MODIFIED_SOURCES} PARENT_SCOPE)
Expand Down

0 comments on commit 22fab1a

Please sign in to comment.