From f670e1820e0cb573df3687a9119c44e6900b7d03 Mon Sep 17 00:00:00 2001 From: freemine Date: Fri, 30 Oct 2020 21:43:07 +0800 Subject: [PATCH] just warn user if flex is not installed under windows platform --- src/connector/odbc/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/connector/odbc/CMakeLists.txt b/src/connector/odbc/CMakeLists.txt index ea68ddd128..b1e2b63d69 100644 --- a/src/connector/odbc/CMakeLists.txt +++ b/src/connector/odbc/CMakeLists.txt @@ -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) -- GitLab