Enable the CMP0156 policy, which de-duplicates libraries on link lines based on linker capabilities. This silences Apple linker "ignoring duplicate libraries" warnings.
The policy requires CMake >=3.29, which is satisfied by the current Homebrew package and the Guix build environment. On older versions the policy guard makes this a no-op.