File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.9 )
1+ cmake_minimum_required (VERSION 3.16 )
22list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} /cmake/modules)
33include (HeadersToIncludeDirs)
44
@@ -13,7 +13,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
1313endif ()
1414
1515#Flex and Bison are used to generate the parser
16- find_package (BISON REQUIRED 3.0 )
16+ find_package (BISON REQUIRED 3.3 )
1717find_package (FLEX REQUIRED)
1818
1919file (GLOB_RECURSE LIB_SOURCES src/sdc*.cpp)
@@ -61,9 +61,9 @@ if (USES_IPO)
6161 CHECK_CXX_COMPILER_FLAG(${flag} CXX_COMPILER_SUPPORTS_${flag} )
6262 if (CXX_COMPILER_SUPPORTS_${flag} )
6363 #Flag supported, so enable it
64- set_target_properties ( sdcparse_test PROPERTIES LINK_FLAGS ${flag} )
64+ set_property ( TARGET sdcparse_test APPEND PROPERTY LINK_FLAGS ${flag} )
6565 endif ()
6666 endforeach ()
6767endif ()
6868
69- install (TARGETS libsdcparse sdcparse_test DESTINATION bin)
69+ install (TARGETS libsdcparse DESTINATION bin)
Original file line number Diff line number Diff line change 1- /* C++ parsers require Bison 3 */
2- %require " 3.0 "
1+ /* C++ parsers require Bison 3.3 */
2+ %require " 3.3 "
33%language " C++"
44
55/* Write-out tokens header file */
3434%define api.namespace {sdcparse}
3535
3636/* Name the parser class */
37- %define parser_class_name {Parser}
37+ %define api.parser.class {Parser}
3838
3939/* Match the flex prefix */
4040%define api.prefix {sdcparse_}
You can’t perform that action at this time.
0 commit comments