mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
[cmake] Add rule to generate FBVF
The custom command for fish.pc had a dependency on FBVF, but there was no cmake rule for the generation of the FBVF file. With CMake 3.10.1 under FreeBSD, this was consistently causing the build to fail if ../build_tools/git_version_gen.sh hadn't (coincidentally, I think?) already run.
This commit is contained in:
parent
0cd934ea63
commit
e4c59ac60a
1 changed files with 10 additions and 5 deletions
|
@ -112,6 +112,11 @@ FISH_CREATE_DIRS(${rel_datadir}/pkgconfig ${extra_completionsdir}
|
|||
# @echo "Installing pkgconfig file"
|
||||
# $v $(INSTALL) -m 644 fish.pc $(DESTDIR)$(datadir)/pkgconfig
|
||||
CONFIGURE_FILE(fish.pc.in fish.pc.noversion)
|
||||
|
||||
ADD_CUSTOM_COMMAND(OUTPUT ${FBVF}
|
||||
COMMAND ./build_tools/git_version_gen.sh
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
|
||||
|
||||
ADD_CUSTOM_COMMAND(OUTPUT fish.pc
|
||||
COMMAND sed '/Version/d' fish.pc.noversion > fish.pc
|
||||
COMMAND echo -n "Version: " >> fish.pc
|
||||
|
|
Loading…
Reference in a new issue