Skip to content

Commit f1c17dc

Browse files
authored
Merge pull request #917 from jsji/adapters
[UR][L0][CMake] Disable warning for ICX on Windows
2 parents 1c6fa3c + 9265d33 commit f1c17dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/adapters/level_zero/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ target_link_libraries(LevelZeroLoader
5656
INTERFACE "${LEVEL_ZERO_LIB_NAME}"
5757
)
5858

59-
if (NOT MSVC)
59+
# Windows build might have warnings (both MSVC and ICX), disable Werror etc.
60+
if (NOT WIN32)
6061
target_compile_options(${LEVEL_ZERO_LIB_NAME} PUBLIC
6162
-Wno-unused-but-set-variable
6263
-Wno-pedantic

0 commit comments

Comments
 (0)