mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
CMake: Fix invocation of flex
This removes the space between '-o' and the output filename, which apparently some builds of flex (e.g. on Windows) dislike.
This commit is contained in:
parent
ac16852e32
commit
fbde7c0b62
@ -20,12 +20,12 @@ function(add_flex_target output_cxx input_lxx)
|
|||||||
elseif(arg STREQUAL "PREFIX")
|
elseif(arg STREQUAL "PREFIX")
|
||||||
set(keyword "PREFIX")
|
set(keyword "PREFIX")
|
||||||
elseif(arg STREQUAL "CASE_INSENSITIVE")
|
elseif(arg STREQUAL "CASE_INSENSITIVE")
|
||||||
list(APPEND arguments -i)
|
list(APPEND arguments "-i")
|
||||||
|
|
||||||
elseif(keyword STREQUAL "PREFIX")
|
elseif(keyword STREQUAL "PREFIX")
|
||||||
list(APPEND arguments -P "${arg}")
|
list(APPEND arguments "-P${arg}")
|
||||||
elseif(keyword STREQUAL "DEFINES")
|
elseif(keyword STREQUAL "DEFINES")
|
||||||
list(APPEND arguments --header-file="${arg}")
|
list(APPEND arguments "--header-file=${arg}")
|
||||||
list(APPEND outputs "${arg}")
|
list(APPEND outputs "${arg}")
|
||||||
|
|
||||||
else()
|
else()
|
||||||
@ -44,7 +44,7 @@ function(add_flex_target output_cxx input_lxx)
|
|||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${outputs}
|
OUTPUT ${outputs}
|
||||||
COMMAND ${FLEX_EXECUTABLE}
|
COMMAND ${FLEX_EXECUTABLE}
|
||||||
-o "${output_cxx}" ${arguments}
|
"-o${output_cxx}" ${arguments}
|
||||||
"${input_lxx}"
|
"${input_lxx}"
|
||||||
MAIN_DEPENDENCY "${input_lxx}"
|
MAIN_DEPENDENCY "${input_lxx}"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user