Skip to content

Commit c4eb26f

Browse files
committed
Fix Bison build-type dependant options
1 parent e2bd77d commit c4eb26f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmake/cmake/Requirements.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ if(
7373
PURPOSE "Necessary to generate PHP parser files."
7474
)
7575
# Add Bison options based on the build type.
76-
set(PHP_DEFAULT_BISON_FLAGS "$<IF:$<CONFIG:Release,MinSizeRel>,-l$<SEMICOLON>-Wall,-Wall>")
77-
# Nicer way would be this, but GNU Bison errors out because it cannot process
78-
# empty double quoted arguments in the command-line.
76+
set(PHP_DEFAULT_BISON_FLAGS "$<IF:$<CONFIG:Release,MinSizeRel>,-lWall,-Wall>")
77+
# Nicer way would be the one below, but GNU Bison errors out because it cannot
78+
# process empty double quoted arguments in the command-line.
7979
# See: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9921
8080
#set(PHP_DEFAULT_BISON_FLAGS "-Wall $<$<CONFIG:Release,MinSizeRel>:-l>")
8181
endif()

0 commit comments

Comments
 (0)