mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 14:29:16 +08:00
Switch fish.pc dependency from FBVF file to CHECK-FBVF target
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
This commit is contained in:
parent
206543c55b
commit
1b950f5f3b
|
@ -110,7 +110,7 @@ add_custom_command(OUTPUT fish.pc
|
|||
COMMAND printf "Version: " >> fish.pc
|
||||
COMMAND sed 's/FISH_BUILD_VERSION=//\;s/\"//g' ${FBVF} >> fish.pc
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${FBVF} ${CMAKE_CURRENT_BINARY_DIR}/fish.pc.noversion)
|
||||
DEPENDS CHECK-FISH-BUILD-VERSION-FILE ${CMAKE_CURRENT_BINARY_DIR}/fish.pc.noversion)
|
||||
|
||||
add_custom_target(build_fish_pc ALL DEPENDS fish.pc)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user