mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Fix windows build.
This commit is contained in:
parent
81fbd878dd
commit
af7cc1ce4c
@ -22,6 +22,8 @@
|
||||
|
||||
#include "debugpixa.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct Boxa;
|
||||
struct Pix;
|
||||
struct Pixa;
|
||||
|
3
sw.cpp
3
sw.cpp
@ -78,7 +78,10 @@ void build(Solution &s)
|
||||
libtesseract.Public += "org.sw.demo.libarchive.libarchive"_dep;
|
||||
|
||||
if (s.Settings.TargetOS.Type == OSType::Windows)
|
||||
{
|
||||
libtesseract.Public += "ws2_32.lib"_l;
|
||||
libtesseract.Protected += "NOMINMAX"_def;
|
||||
}
|
||||
|
||||
libtesseract.Variables["TESSERACT_MAJOR_VERSION"] = libtesseract.Variables["PACKAGE_MAJOR_VERSION"];
|
||||
libtesseract.Variables["TESSERACT_MINOR_VERSION"] = libtesseract.Variables["PACKAGE_MINOR_VERSION"];
|
||||
|
Loading…
Reference in New Issue
Block a user