Skip to content

Commit 7b0965e

Browse files
committed
Fix customization RE2C if needed
When downloading, enable also customization of re2c path if it is customized in consequtive configuration step.
1 parent 674501c commit 7b0965e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/cmake/modules/FindRE2C.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,11 @@ function(re2c_target)
306306

307307
add_custom_command(
308308
OUTPUT ${outputs}
309-
COMMAND $<IF:$<TARGET_EXISTS:RE2C::RE2C>,RE2C::RE2C,${RE2C_EXECUTABLE}>
309+
COMMAND ${RE2C_EXECUTABLE}
310310
${options}
311311
--output ${output}
312312
${input}
313-
DEPENDS ${input} ${parsed_DEPENDS}
313+
DEPENDS ${input} ${parsed_DEPENDS} $<TARGET_NAME_IF_EXISTS:RE2C::RE2C>
314314
COMMENT "[RE2C][${ARGV0}] Building lexer with re2c ${RE2C_VERSION}"
315315
VERBATIM
316316
COMMAND_EXPAND_LISTS

0 commit comments

Comments
 (0)