Skip to content

Commit 3643986

Browse files
committed
limiting Wno-covered-switch-default to plugins
Signed-off-by: Chris Perkins <[email protected]>
1 parent 69415b4 commit 3643986

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

sycl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ set(SYCL_VERSION_STRING "${SYCL_MAJOR_VERSION}.${SYCL_MINOR_VERSION}.${SYCL_PATC
2525
if (MSVC)
2626
set(CMAKE_CXX_FLAGS "/W4 ${CMAKE_CXX_FLAGS}")
2727
else ()
28-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-deprecated-declarations -Wno-covered-switch-default")
28+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-deprecated-declarations")
2929
endif()
3030

3131
if(SYCL_ENABLE_WERROR)

sycl/plugins/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
22

3+
if(NOT MSVC)
4+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-covered-switch-default")
5+
endif()
6+
37
if(SYCL_BUILD_PI_CUDA)
48
add_subdirectory(cuda)
59
endif()

0 commit comments

Comments
 (0)