Skip to content

Commit 2d1decb

Browse files
committed
Disable training tools on appveyor because of installed cmake 3.6 bug.
1 parent 2a9e162 commit 2d1decb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ endif()
6464

6565
find_package(OpenCL QUIET)
6666

67+
option(BUILD_TRAINING_TOOLS "Build training tools" ON)
68+
6769
###############################################################################
6870
#
6971
# compiler and linker
@@ -246,6 +248,8 @@ set_target_properties (tesseractmain PROPERTIES OUTPUT_NAME tesseract)
246248

247249
########################################
248250

251+
if (BUILD_TRAINING_TOOLS)
249252
add_subdirectory(training)
253+
endif()
250254

251255
###############################################################################

appveyor.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ before_build:
1616
- curl -fsS -o cppan.zip https://cppan.org/client/cppan-master-Windows-client.zip
1717
- 7z x cppan.zip
1818
- set PATH=%PATH%;%cd%
19-
20-
- cmake --version
2119

2220
- cppan # dummy run to create %USERPROFILE%\.cppan\cppan.yml
2321
- ps: 'Add-Content $env:USERPROFILE\.cppan\cppan.yml "`n`nbuild_system_verbose: false`n"'
@@ -26,5 +24,5 @@ build_script:
2624
- cppan
2725
- mkdir build
2826
- cd build
29-
- cmake .. -G "%generator%"
27+
- cmake .. -G "%generator%" -DBUILD_TRAINING_TOOLS=Off
3028
- cmake --build . --config Release

0 commit comments

Comments
 (0)