Skip to content

Commit

Permalink
Fix missing prefix on config
Browse files Browse the repository at this point in the history
  • Loading branch information
definelicht committed Oct 25, 2021
1 parent 6cbb1ff commit 91218bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/FindVitis.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,9 @@ function(add_vitis_program
set(PROGRAM_LINK_FLAGS "${PROGRAM_LINK_FLAGS} ${KERNEL_LINK_FLAGS}")

# If HLS TCL config commands are provided, generate a file that can be passed
if(HLS_CONFIG)
if(KERNEL_HLS_CONFIG)
set(HLS_TCL_FILE ${CMAKE_CURRENT_BINARY_DIR}/${KERNEL}_config.tcl)
file(WRITE ${HLS_TCL_FILE} "${HLS_CONFIG}")
file(WRITE ${HLS_TCL_FILE} "${KERNEL_HLS_CONFIG}")
set(KERNEL_COMPILE_FLAGS "${KERNEL_COMPILE_FLAGS} --hls.pre_tcl ${HLS_TCL_FILE}")
endif()

Expand Down

0 comments on commit 91218bb

Please sign in to comment.