cmake: add SED to build_lexicon_filter

This commit is contained in:
David Adam 2017-11-28 21:37:42 +08:00
parent b7fc3ee22e
commit 7faa6e773f
2 changed files with 3 additions and 0 deletions

View file

@ -112,3 +112,5 @@ SET(CMAKE_REQUIRED_LIBRARIES)
IF(NOT TPARM_TAKES_VARARGS)
SET(TPARM_SOLARIS_KLUDGE 1)
ENDIF()
FIND_PROGRAM(SED sed)

View file

@ -30,6 +30,7 @@ ADD_CUSTOM_COMMAND(OUTPUT lexicon_filter
COMMAND build_tools/build_lexicon_filter.sh
${CMAKE_CURRENT_SOURCE_DIR}/share/functions/
${CMAKE_CURRENT_SOURCE_DIR}/share/completions/
${SED}
< ${CMAKE_CURRENT_SOURCE_DIR}/lexicon_filter.in
> ${CMAKE_CURRENT_BINARY_DIR}/lexicon_filter
&& chmod a+x ${CMAKE_CURRENT_BINARY_DIR}/lexicon_filter