Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.9)
cmake_minimum_required(VERSION 3.16)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
include(HeadersToIncludeDirs)

Expand All @@ -13,7 +13,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
endif()

#Flex and Bison are used to generate the parser
find_package(BISON REQUIRED 3.0)
find_package(BISON REQUIRED 3.3)
find_package(FLEX REQUIRED)

file(GLOB_RECURSE LIB_SOURCES src/sdc*.cpp)
Expand Down Expand Up @@ -61,9 +61,9 @@ if (USES_IPO)
CHECK_CXX_COMPILER_FLAG(${flag} CXX_COMPILER_SUPPORTS_${flag})
if(CXX_COMPILER_SUPPORTS_${flag})
#Flag supported, so enable it
set_target_properties(sdcparse_test PROPERTIES LINK_FLAGS ${flag})
set_property(TARGET sdcparse_test APPEND PROPERTY LINK_FLAGS ${flag})
endif()
endforeach()
endif()

install(TARGETS libsdcparse sdcparse_test DESTINATION bin)
install(TARGETS libsdcparse DESTINATION bin)
6 changes: 3 additions & 3 deletions src/sdc_parser.y
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* C++ parsers require Bison 3 */
%require "3.0"
/* C++ parsers require Bison 3.3 */
%require "3.3"
%language "C++"

/* Write-out tokens header file */
Expand Down Expand Up @@ -34,7 +34,7 @@
%define api.namespace {sdcparse}

/* Name the parser class */
%define parser_class_name {Parser}
%define api.parser.class {Parser}

/* Match the flex prefix */
%define api.prefix {sdcparse_}
Expand Down