summaryrefslogtreecommitdiffstats
path: root/Modules/FindFLEX.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-04-20 17:18:56 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-20 17:18:56 (GMT)
commit3d13492eac641f755ad13291560b91113c2a61d9 (patch)
treee96111a4de011a0c5bad349bd5dbe55fd25d44e0 /Modules/FindFLEX.cmake
parent484958b781dcfaf12a29a5c916277fc7d4b01fbd (diff)
downloadCMake-3d13492eac641f755ad13291560b91113c2a61d9.zip
CMake-3d13492eac641f755ad13291560b91113c2a61d9.tar.gz
CMake-3d13492eac641f755ad13291560b91113c2a61d9.tar.bz2
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.
Diffstat (limited to 'Modules/FindFLEX.cmake')
-rw-r--r--Modules/FindFLEX.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindFLEX.cmake b/Modules/FindFLEX.cmake
index ca66493..b50c74a 100644
--- a/Modules/FindFLEX.cmake
+++ b/Modules/FindFLEX.cmake
@@ -185,8 +185,8 @@ if(FLEX_EXECUTABLE)
endif()
add_custom_command(OUTPUT ${FLEX_TARGET_outputs}
- COMMAND ${FLEX_EXECUTABLE}
- ARGS ${FLEX_EXECUTABLE_opts} -o${Output} ${Input}
+ COMMAND ${FLEX_EXECUTABLE} ${FLEX_EXECUTABLE_opts} -o${Output} ${Input}
+ VERBATIM
DEPENDS ${Input}
COMMENT "[FLEX][${Name}] Building scanner with flex ${FLEX_VERSION}"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})