Skip to content

Commit e4fe2da

Browse files
committed
Suppress warnings in VCPKG headers
1 parent 6b91ba2 commit e4fe2da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ if(directx-headers_FOUND)
325325
message(STATUS "Using DirectX-Headers package")
326326
target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectX-Headers)
327327
target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS)
328+
target_compile_options(${PROJECT_NAME} PRIVATE $<$<CXX_COMPILER_ID:MSVC,Intel>:/wd4062> $<$<CXX_COMPILER_ID:Clang,IntelLLVM>:-Wno-switch-enum>)
328329
endif()
329330

330331
#--- Package

0 commit comments

Comments
 (0)