Skip to content

Commit 87f8a11

Browse files
committed
added option in Cmake file to support unnamed lambda option. You need this to compile if the environment doesn't have this set by default.
Signed-off-by: todd.erdner <[email protected]>
1 parent 947ea80 commit 87f8a11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DirectProgramming/DPC++/ParallelPatterns/dpc_reduce/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if (NOT CMAKE_BUILD_TYPE)
1212
FORCE)
1313
endif()
1414

15-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -fsycl -std=c++17")
15+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -fsycl -std=c++17 -fsycl-unnamed-lambda")
1616

1717
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -ltbb -lsycl")
1818

0 commit comments

Comments
 (0)