mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
[cmake] fix generation of fish pkgconfig file
Use `printf` instead of the non-portable `echo -n`.
This commit is contained in:
parent
072bbe7e5d
commit
625ef5d734
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ CONFIGURE_FILE(fish.pc.in fish.pc.noversion)
|
|||
|
||||
ADD_CUSTOM_COMMAND(OUTPUT fish.pc
|
||||
COMMAND sed '/Version/d' fish.pc.noversion > fish.pc
|
||||
COMMAND echo -n "Version: " >> 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)
|
||||
|
|
Loading…
Reference in a new issue