Skip to content

Commit e86baf4

Browse files
[SYCL][PI] Restore find_package(Threads) to fix build issue in some env (#6059)
Fix regression after #6023
1 parent 211ccda commit e86baf4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sycl/plugins/level_zero/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ if (SYCL_ENABLE_XPTI_TRACING)
103103
set(XPTI_PROXY_SRC "${CMAKE_SOURCE_DIR}/../xpti/src/xpti_proxy.cpp")
104104
endif()
105105

106+
find_package(Threads REQUIRED)
107+
106108
add_sycl_plugin(level_zero
107109
SOURCES
108110
"${sycl_inc_dir}/CL/sycl/detail/pi.h"
@@ -114,6 +116,7 @@ add_sycl_plugin(level_zero
114116
${XPTI_PROXY_SRC}
115117
LIBRARIES
116118
"${LEVEL_ZERO_LOADER}"
119+
Threads::Threads
117120
)
118121

119122
find_package(Python3 REQUIRED)

0 commit comments

Comments
 (0)