Skip to content

Commit ff22099

Browse files
committed
Rename yysymbol_kind_t, analog to previous commit
to avoid -Wodr warnings
1 parent 069ab34 commit ff22099

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ macro(generic_bison name)
2323
endif()
2424

2525
set(bison_source "${name}_y.tab.cpp")
26-
set_source_files_properties(${bison_source} PROPERTIES COMPILE_FLAGS -Dyyalloc=${name}_yyalloc)
26+
set_source_files_properties(${bison_source} PROPERTIES
27+
COMPILE_FLAGS "-Dyyalloc=${name}_yyalloc -Dyysymbol_kind_t=${name}_yysymbol_kind_t")
2728
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${bison_source}")
2829
message(FATAL_ERROR "Generated file ${bison_source} found in source tree. If you previously built with `make`, run `make clean` and try again")
2930
endif()

0 commit comments

Comments
 (0)