diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ac0f68..5114098 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -166,6 +166,15 @@ endif() add_executable(${PROJECT_NAME} ${APP_SOURCES}) +# Silencia warnings de codi de tercers (mateixa filosofia que el +# .clang-tidy de source/external/). Només afecta aquests TUs concrets; +# la resta del codi continua compilant amb -Wall -Wextra -Wpedantic. +set_source_files_properties( + source/external/stb_image_write_impl.cpp + source/external/stb_vorbis_impl.cpp + PROPERTIES COMPILE_OPTIONS "-Wno-missing-field-initializers" +) + if(NOT APPLE AND GLSLC_EXE) add_dependencies(${PROJECT_NAME} shaders) endif()