Skip to content

Commit f2cb08c

Browse files
committed
Rename yysymbol_kind_t, analog to previous commit
to avoid -Wodr warnings
1 parent 1ec817f commit f2cb08c

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
@@ -25,7 +25,8 @@ macro(generic_bison name)
2525
endif()
2626

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

0 commit comments

Comments
 (0)