FindFLEX: Fix FLEX_TARGET macro for special characters in path (#16072)
Use the VERBATIM option to add_custom_command so that the command is escaped correctly.
This commit is contained in:
parent
484958b781
commit
3d13492eac
|
@ -185,8 +185,8 @@ if(FLEX_EXECUTABLE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${FLEX_TARGET_outputs}
|
add_custom_command(OUTPUT ${FLEX_TARGET_outputs}
|
||||||
COMMAND ${FLEX_EXECUTABLE}
|
COMMAND ${FLEX_EXECUTABLE} ${FLEX_EXECUTABLE_opts} -o${Output} ${Input}
|
||||||
ARGS ${FLEX_EXECUTABLE_opts} -o${Output} ${Input}
|
VERBATIM
|
||||||
DEPENDS ${Input}
|
DEPENDS ${Input}
|
||||||
COMMENT "[FLEX][${Name}] Building scanner with flex ${FLEX_VERSION}"
|
COMMENT "[FLEX][${Name}] Building scanner with flex ${FLEX_VERSION}"
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
Loading…
Reference in New Issue