just warn user if flex is not installed under windows platform

This commit is contained in:
freemine 2020-10-30 21:43:07 +08:00
parent faec0c3ad7
commit f670e1820e
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ IF (TD_WINDOWS_64)
endif ()
find_package(FLEX)
if(NOT FLEX_FOUND)
message(FATAL_ERROR "you need to install flex first")
message(WARNING "you need to install flex first\n"
"you may go to: https://github.com/lexxmark/winflexbison\n"
"or download from: https://github.com/lexxmark/winflexbison/releases")
else ()
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(tools)