Skip to content

Commit

Permalink
Simplify yacc/lex config
Browse files Browse the repository at this point in the history
  • Loading branch information
GilesBathgate committed Jul 20, 2024
1 parent 81b17e2 commit db6e2b9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions rapcad.pro
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ win32 {
INCLUDEPATH += $$DXFLIBROOT
LIBS += -L$$DXFLIBROOT/release -ldxflib
}
QMAKE_YACC = win_bison
QMAKE_YACCFLAGS += "-b y"
QMAKE_LEX = win_flex
} else {

exists( /usr/lib/x86_64-linux-gnu/libCGAL* ) {
Expand All @@ -71,7 +68,6 @@ win32 {
contains(DEFINES,USE_DXF) {
LIBS += -ldxflib
}
QMAKE_YACC = bison
macx {
ICON = icons/AppIcon.icns
INCLUDEPATH += $$(CGAL_DIR)/include
Expand All @@ -88,6 +84,16 @@ win32 {
}
}

# Configure yacc/lex
win32 {
QMAKE_YACC = win_bison
QMAKE_YACCFLAGS += "-b y"
QMAKE_LEX = win_flex
} else {
QMAKE_YACC = bison
QMAKE_LEX = flex
}

BISON_VERSION = $$system($$QMAKE_YACC --version)
BISON_VERSION = $$find(BISON_VERSION, [0-9]+.[0-9]+.[0-9]+)
BISON_VERSIONS = $$split(BISON_VERSION, ".")
Expand Down

0 comments on commit db6e2b9

Please sign in to comment.