File tree 1 file changed +6
-4
lines changed
DirectProgramming/C++SYCL_FPGA/ReferenceDesigns/anr/src
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,6 @@ else()
21
21
set (DEVICE_FLAG "S10" )
22
22
elseif (FPGA_DEVICE_NAME MATCHES ".*agilex.*" )
23
23
set (DEVICE_FLAG "Agilex" )
24
- else ()
25
- message (FATAL_ERROR "An unrecognized or custom board was passed, but DEVICE_FLAG was not specified. \
26
- Please make sure you have set -DDEVICE_FLAG=A10, -DDEVICE_FLAG=S10 or \
27
- -DDEVICE_FLAG=Agilex." )
28
24
endif ()
29
25
message (STATUS "Configuring the design with the following target: ${FPGA_DEVICE} " )
30
26
@@ -38,6 +34,12 @@ else()
38
34
endif ()
39
35
endif ()
40
36
37
+ if (NOT DEFINED DEVICE_FLAG)
38
+ message (FATAL_ERROR "An unrecognized or custom board was passed, but DEVICE_FLAG was not specified. \
39
+ Please make sure you have set -DDEVICE_FLAG=A10, -DDEVICE_FLAG=S10 or \
40
+ -DDEVICE_FLAG=Agilex." )
41
+ endif ()
42
+
41
43
# These are Windows-specific flags:
42
44
# 1. /EHsc This is a Windows-specific flag that enables exception handling in host code
43
45
# 2. /Qactypes Include ac_types headers and link against ac_types emulation libraries
You can’t perform that action at this time.
0 commit comments