Merge in SNORT/snort3 from ~OSHUMEIK/snort3:js_norm_cmake_sed to master
Squashed commit of the following:
commit
c4bd8e8b2c39d96c367bfb6c6e1340c686add726
Author: Oleksii Shumeiko <oshumeik@cisco.com>
Date: Fri Apr 28 12:23:30 2023 +0300
cmake: update sed call
Use '|' rather than '+' for sed separator.
A target name can contain any symbol, for example '+' on OpenWrt.
Picking '|' as a more common substitution for '/'.
Thanks to graysky for reporting the issue.
COMPILE_FLAGS ${FLEX_FLAGS}
)
- # we use '+' as a separator for 'sed' to avoid conflicts with '/' in paths from LEXER_OUT
+ # we use '|' as a separator for 'sed' to avoid conflicts with '/' in paths from LEXER_OUT
add_custom_command(
OUTPUT ${LEXER_OUT}
COMMAND sed -e
- "s+void yyFlexLexer::LexerError+yynoreturn void yyFlexLexer::LexerError+;s+${LEXER_OUT}.tmp+${LEXER_OUT}+"
+ "s|void yyFlexLexer::LexerError|yynoreturn void yyFlexLexer::LexerError|;s|${LEXER_OUT}.tmp|${LEXER_OUT}|"
${FLEX_${NAME}_OUTPUTS} > ${LEXER_OUT}
DEPENDS ${FLEX_${NAME}_OUTPUTS}
VERBATIM