We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 674501c commit 7b0965eCopy full SHA for 7b0965e
cmake/cmake/modules/FindRE2C.cmake
@@ -306,11 +306,11 @@ function(re2c_target)
306
307
add_custom_command(
308
OUTPUT ${outputs}
309
- COMMAND $<IF:$<TARGET_EXISTS:RE2C::RE2C>,RE2C::RE2C,${RE2C_EXECUTABLE}>
+ COMMAND ${RE2C_EXECUTABLE}
310
${options}
311
--output ${output}
312
${input}
313
- DEPENDS ${input} ${parsed_DEPENDS}
+ DEPENDS ${input} ${parsed_DEPENDS} $<TARGET_NAME_IF_EXISTS:RE2C::RE2C>
314
COMMENT "[RE2C][${ARGV0}] Building lexer with re2c ${RE2C_VERSION}"
315
VERBATIM
316
COMMAND_EXPAND_LISTS
0 commit comments