File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ version: build-{build}~branch-{branch}
3
3
before_build :
4
4
- md %APPVEYOR_BUILD_FOLDER%\win_build
5
5
- cd %APPVEYOR_BUILD_FOLDER%\win_build
6
- - cmake .. -G "Visual Studio 15 2017 Win64" -DWITH_UNIT_TESTS=0 -DBISON_EXECUTABLE=C:\cygwin\bin\bison
6
+ - cmake .. -G "Visual Studio 15 2017 Win64" -DWITH_UNIT_TESTS=0
7
7
8
8
build :
9
9
project : win_build\MySQL.sln
Original file line number Diff line number Diff line change @@ -20,7 +20,16 @@ IF(CMAKE_SYSTEM_NAME MATCHES "SunOS")
20
20
SET (BISON_EXECUTABLE /opt/csw/bin/bison )
21
21
ENDIF ()
22
22
ENDIF ()
23
- FIND_PROGRAM (BISON_EXECUTABLE bison DOC "path to the bison executable" )
23
+ IF (WIN32 )
24
+ SET (BISON_PATH_HINTS
25
+ HINTS
26
+ C:/gnuwin32/bin
27
+ C:/cygwin64/bin
28
+ C:/cygwin/bin )
29
+ ENDIF ()
30
+ FIND_PROGRAM (BISON_EXECUTABLE bison
31
+ ${BISON_PATH_HINTS}
32
+ DOC "path to the bison executable" )
24
33
MARK_AS_ADVANCED (BISON_EXECUTABLE "" )
25
34
IF (NOT BISON_EXECUTABLE )
26
35
MESSAGE ("Warning: Bison executable not found in PATH" )
You can’t perform that action at this time.
0 commit comments