Skip to content

Commit 1ef05eb

Browse files
authored
[SYCLomatic] Fix link error about std::experimental::filesystem on sles155 platform (#571)
Signed-off-by: chenwei.sun <[email protected]>
1 parent 4d04df9 commit 1ef05eb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

behavior_tests/src/cmake_dpct_compile_sycl_code/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,16 @@ include(${dpct_cmake_file_path})
2121
dpct_compile_sycl_code(cuda_ptx_files jit.dp.cpp)
2222

2323
set(_generated_files "")
24+
25+
set(options "")
26+
if (UNIX)
27+
set(options -lstdc++fs)
28+
endif()
29+
2430
add_custom_command(
2531
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/app.run
2632
COMMAND icpx -fsycl -o ${CMAKE_CURRENT_BINARY_DIR}/app.run
27-
${CMAKE_SOURCE_DIR}/kernel_library.cpp.dp.cpp
33+
${CMAKE_SOURCE_DIR}/kernel_library.cpp.dp.cpp ${options}
2834
DEPENDS ${CMAKE_SOURCE_DIR}/kernel_library.cpp.dp.cpp
2935
COMMENT "Generating app.run")
3036

0 commit comments

Comments
 (0)