Skip to content

Commit

Permalink
Add extra safety check since FindFLEX is insufficient
Browse files Browse the repository at this point in the history
  • Loading branch information
islas committed Aug 1, 2024
1 parent 54c47e6 commit 9b4ec97
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,14 @@ endif()
if ( ${ENABLE_KPP} )
find_package( BISON REQUIRED )
find_package( FLEX REQUIRED )
if ( ${FLEX_FOUND} AND "${FLEX_LIBRARIES}" STREQUAL "FL_LIBRARY-NOTFOUND" )
message( FATAL_ERROR
"Flex executable found, but libraries were not. Please provide a searchable path for both "
"\n"
"Refer to https://cmake.org/cmake/help/latest/command/find_package.html for more info "
"on providing a suitable path"
)
endif()
endif()

# Will need our own finder
Expand Down

0 comments on commit 9b4ec97

Please sign in to comment.