https://bugs.kde.org/show_bug.cgi?id=504518
Bug ID: 504518 Summary: Broken test ECMGeneratePkgConfigFile with CMake>=4 Classification: Frameworks and Libraries Product: extra-cmake-modules Version First 6.13.0 Reported In: Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: ecm-bugs-n...@kde.org Reporter: klaus_zimmerm...@gmx.de Target Milestone: --- SUMMARY CMake version 4.0 removes policy CMP0048, which breaks the test ECMGeneratePkgConfigFile. That is because the test does not call the project macro, but with CMP0048 now always being true, ecm_setup_version assumes that project manages the PROJECT_VERSION macros, c.f. https://invent.kde.org/frameworks/extra-cmake-modules/-/blob/master/modules/ECMSetupVersion.cmake?ref_type=heads#L113 and https://invent.kde.org/frameworks/extra-cmake-modules/-/blob/master/modules/ECMSetupVersion.cmake?ref_type=heads#L164. STEPS TO REPRODUCE 1. Install cmake>=4 or force CMP0048 to NEW 2. Run ECMGeneratePkgConfigFile test OBSERVED RESULT EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: macOS: (available in the Info Center app, or by running `kinfo` in a terminal window) Linux/KDE Plasma: KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION This surfaced while updating the extra-cmake-modules package for conda-forge at https://github.com/conda-forge/extra-cmake-modules-feedstock/pull/68 -- You are receiving this mail because: You are watching all bug changes.