mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
[sw] Add pthread to tests.
This commit is contained in:
parent
2a74e72c39
commit
b302e13126
7
sw.cpp
7
sw.cpp
@ -227,6 +227,13 @@ void build(Solution &s)
|
||||
if (t.getCompilerType() == CompilerType::MSVC)
|
||||
t.CompileOptions.push_back("-utf-8");
|
||||
|
||||
auto win_or_mingw =
|
||||
t.getBuildSettings().TargetOS.Type == OSType::Windows ||
|
||||
t.getBuildSettings().TargetOS.Type == OSType::Mingw
|
||||
;
|
||||
if (!win_or_mingw)
|
||||
t += "pthread"_slib;
|
||||
|
||||
auto tst = libtesseract.addTest(t, name);
|
||||
for (auto &st : skipped_tests)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user