File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,18 @@ IF(WIN32 AND NOT DEFINED BISON_EXECUTABLE)
98
98
NO_DEFAULT_PATH
99
99
PATHS ${NATIVE_BISON_PATHS}
100
100
)
101
+ # Look for Flex also, we may need it later.
102
+ IF (BISON_EXECUTABLE )
103
+ FIND_PROGRAM (FLEX_EXECUTABLE
104
+ NAMES flex win-flex win_flex
105
+ NO_DEFAULT_PATH
106
+ PATHS ${NATIVE_BISON_PATHS}
107
+ )
108
+ FIND_PATH (FLEX_INCLUDE_DIR FlexLexer.h
109
+ NO_DEFAULT_PATH
110
+ PATHS ${NATIVE_BISON_PATHS}
111
+ )
112
+ ENDIF ()
101
113
ENDIF ()
102
114
103
115
FIND_PACKAGE (BISON )
Original file line number Diff line number Diff line change @@ -894,6 +894,13 @@ IF(WIN32 AND NOT WIN32_CLANG)
894
894
COMPILE_FLAGS "/d2OptimizeHugeFunctions" )
895
895
ENDIF ()
896
896
897
+ # 'yyexhtaustedlab': unreferenced label
898
+ IF (WIN32 AND NOT WIN32_CLANG )
899
+ ADD_COMPILE_FLAGS (${CMAKE_CURRENT_BINARY_DIR} /sql_yacc.cc
900
+ ${CMAKE_CURRENT_BINARY_DIR} /sql_hints.yy.cc
901
+ COMPILE_FLAGS "/wd4102" )
902
+ ENDIF ()
903
+
897
904
# Common for all versions of GCC/Clang
898
905
# Bison output uses undefined symbols in #if checks
899
906
IF (MY_COMPILER_IS_GNU_OR_CLANG )
You can’t perform that action at this time.
0 commit comments