Merge pull request #8410 from spycrab/cmake_win_warnings CMake/Windows: Fix warnings about flags being overridden