Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMakeLists.txt: Set policy CMP0151. (introduced in CMake-3.27)
clang complains about namespace pollution in generated moc_*.cpp files: In file included from src/kde/kf5/kfilemetadata_rom-properties-kf5_autogen/mocs_compilation.cpp:2: src/kde/kf5/kfilemetadata_rom-properties-kf5_autogen/BKZOEHIFDQ/moc_ExtractorPluginKF5.cpp:1082:17: warning: using namespace directive in global context in header [-Wheader-hygiene] 1082 | using namespace RomPropertiesKF5; | ^ Setting CMP0151 tells AUTOGEN to add the include paths using -isystem, which tells clang it shouldn't print warnings about these files.
- Loading branch information