mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
Stop tests from creating a share/functions/functions link
This commit is contained in:
parent
8b4585d387
commit
4c98757f85
1 changed files with 3 additions and 1 deletions
|
@ -72,7 +72,9 @@ set(TEST_ROOT_DIR ${TEST_DIR}/root)
|
||||||
if(NOT FISH_IN_TREE_BUILD)
|
if(NOT FISH_IN_TREE_BUILD)
|
||||||
add_custom_target(funcs_dir)
|
add_custom_target(funcs_dir)
|
||||||
add_custom_command(TARGET funcs_dir
|
add_custom_command(TARGET funcs_dir
|
||||||
COMMAND mkdir -p ${CMAKE_BINARY_DIR}/share && ln -sf
|
COMMAND mkdir -p ${CMAKE_BINARY_DIR}/share
|
||||||
|
# Don't run ln twice or it will create a new link in the link.
|
||||||
|
COMMAND test -e ${CMAKE_BINARY_DIR}/share/functions || ln -sf
|
||||||
${CMAKE_SOURCE_DIR}/share/functions/ ${CMAKE_BINARY_DIR}/share/functions
|
${CMAKE_SOURCE_DIR}/share/functions/ ${CMAKE_BINARY_DIR}/share/functions
|
||||||
COMMENT "Symlinking fish functions to binary dir"
|
COMMENT "Symlinking fish functions to binary dir"
|
||||||
VERBATIM)
|
VERBATIM)
|
||||||
|
|
Loading…
Reference in a new issue