Skip to content

Commit 128634a

Browse files
committed
Find flex and bison on *nix.
1 parent 2b3de20 commit 128634a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/inserts/functions.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,8 +1223,10 @@ function(cppan_flex_bison_internal lexer)
12231223
set(bdir ${BDIR_PRIVATE}/fb)
12241224

12251225
if (NOT WIN32)
1226-
set(flex flex)
1227-
set(bison bison)
1226+
find_package(FLEX REQUIRED)
1227+
find_package(BISON REQUIRED 3.0)
1228+
set(bison ${BISON_EXECUTABLE})
1229+
set(flex ${FLEX_EXECUTABLE})
12281230
endif()
12291231

12301232
# parsers

0 commit comments

Comments
 (0)