Skip to content

Commit

Permalink
Rename yysymbol_kind_t, analog to previous commit
Browse files Browse the repository at this point in the history
to avoid -Wodr warnings
  • Loading branch information
rurban committed Nov 1, 2024
1 parent 70cf69c commit badadb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ macro(generic_bison name)
endif()

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

0 comments on commit badadb3

Please sign in to comment.