mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -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")
|
||||
set(keyword "PREFIX")
|
||||
elseif(arg STREQUAL "CASE_INSENSITIVE")
|
||||
list(APPEND arguments -i)
|
||||
list(APPEND arguments "-i")
|
||||
|
||||
elseif(keyword STREQUAL "PREFIX")
|
||||
list(APPEND arguments -P "${arg}")
|
||||
list(APPEND arguments "-P${arg}")
|
||||
elseif(keyword STREQUAL "DEFINES")
|
||||
list(APPEND arguments --header-file="${arg}")
|
||||
list(APPEND arguments "--header-file=${arg}")
|
||||
list(APPEND outputs "${arg}")
|
||||
|
||||
else()
|
||||
@ -44,7 +44,7 @@ function(add_flex_target output_cxx input_lxx)
|
||||
add_custom_command(
|
||||
OUTPUT ${outputs}
|
||||
COMMAND ${FLEX_EXECUTABLE}
|
||||
-o "${output_cxx}" ${arguments}
|
||||
"-o${output_cxx}" ${arguments}
|
||||
"${input_lxx}"
|
||||
MAIN_DEPENDENCY "${input_lxx}"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user