I just tried to compile a rather huge CMake-based plugin project that was built with MSVC on Windows until now with clang-cl. While this generally works, I get a lot of new compiler warnings especially
-Wunused-local-typedef -Wunused-private-field -Wmisleading-indentation
from some in-house juce modules used in that plugin. Since these are warning that we consider to be safe to ignore, I tried to suppress them the usual way like
target_compile_options(myPlugin PRIVATE -Wno-unused-local-typedef -Wno-unused-private-field -Wno-misleading-indentation)
which I successfully did some times before. But no success here - the warnings still pop up. To verify that it’s generally working I added
-Wno-asdfdasf and immediately got compile warnings about an unknown warning.
I thought I had a good understanding of CMake in the meantime but this confuses me. Any idea what I’m missing here?