From badadb3d5b4fbc5e17af017bb08ef80d5446d186 Mon Sep 17 00:00:00 2001 From: Reini Urban Date: Wed, 8 Nov 2023 07:26:48 +0100 Subject: [PATCH] Rename yysymbol_kind_t, analog to previous commit to avoid -Wodr warnings --- src/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2522a452dff..f36e64e06fe 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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()