Skip to content

Commit 2305b89

Browse files
authored
FPGA: fix zero_copy_data_transfers CMakelist.txt to add the appropriate -DIS_BSP flags (#2340)
This change fixes the CMakeLists.txt for zero_copy_data_transfer so that it adds the -DIS_BSP flag to the compile flags.
1 parent 6b80ec5 commit 2305b89

File tree

1 file changed

+3
-1
lines changed
  • DirectProgramming/C++SYCL_FPGA/Tutorials/DesignPatterns/zero_copy_data_transfer

1 file changed

+3
-1
lines changed

DirectProgramming/C++SYCL_FPGA/Tutorials/DesignPatterns/zero_copy_data_transfer/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ else()
5454
# Check if the target is a BSP
5555
if(IS_BSP MATCHES "1")
5656
set(IS_BSP "1")
57+
set(BSP_FLAG "-DIS_BSP")
5758
else()
5859
set(IS_BSP "0")
60+
set(BSP_FLAG "")
5961
message(STATUS "The selected target ${FPGA_DEVICE} is assumed to be an FPGA part number, so USM will be enabled by default.")
6062
message(STATUS "If the target is actually a BSP that does not support USM, run cmake with -DIS_BSP=1.")
6163
endif()
@@ -88,7 +90,7 @@ endif()
8890
set(USER_FPGA_FLAGS ${USER_FPGA_FLAGS})
8991

9092
# Use cmake -DUSER_FLAGS=<flags> to set extra flags for general compilation.
91-
set(USER_FLAGS ${USER_FLAGS};-D${DEVICE_FLAG};${HYPER_FLAG})
93+
set(USER_FLAGS ${USER_FLAGS};-D${DEVICE_FLAG};${HYPER_FLAG};${BSP_FLAG})
9294

9395
# Use cmake -DUSER_INCLUDE_PATHS=<paths> to set extra paths for general
9496
# compilation.

0 commit comments

Comments
 (0)