From 91218bb0ead4e163040004c9abd4a1972feef6fe Mon Sep 17 00:00:00 2001 From: Johannes de Fine Licht Date: Mon, 25 Oct 2021 17:33:09 +0200 Subject: [PATCH] Fix missing prefix on config --- cmake/FindVitis.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/FindVitis.cmake b/cmake/FindVitis.cmake index 11d9c44..64f1767 100644 --- a/cmake/FindVitis.cmake +++ b/cmake/FindVitis.cmake @@ -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()