mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 04:22:40 +08:00

Previously, both fish.pc and libfish had generating the FISH-BUILD-VERSION-FILE attached as a command. In principle they could both try to run the command simultaneously and now CMake complains about this with the Xcode generator. Switch to having fish.pc depend on the CHECK-FISH-BUILD-VERSION-FILE as a target instead of a command. This allows it to participate in dependency resolution and CMake will succeed again. Fixes #7838