fix: Get rid of warnings on clang-cl (#6528)

This commit is contained in:
nerix
2025-10-25 16:14:20 +02:00
committed by GitHub
parent 6e443cd767
commit 7214c49e79
27 changed files with 124 additions and 105 deletions
+8
View File
@@ -1234,6 +1234,14 @@ if (MSVC)
# Enable updated '__cplusplus' macro - workaround for CMake#18837
/Zc:__cplusplus
)
# Warnings on clang-cl
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
target_compile_options(${LIBRARY_PROJECT} PUBLIC
-Wno-missing-designated-field-initializers
)
endif()
# Disable min/max macros from Windows.h
target_compile_definitions(${LIBRARY_PROJECT} PUBLIC NOMINMAX)
else ()