mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
[sw] Add pthread dependency.
This commit is contained in:
parent
af4ebaa943
commit
2a74e72c39
7
sw.cpp
7
sw.cpp
@ -132,6 +132,13 @@ void build(Solution &s)
|
||||
unicharset_training.Public += "src/training/unicharset"_idir;
|
||||
unicharset_training.Public += common_training;
|
||||
unicharset_training.Public += "org.sw.demo.unicode.icu.i18n"_dep;
|
||||
|
||||
auto win_or_mingw =
|
||||
unicharset_training.getBuildSettings().TargetOS.Type == OSType::Windows ||
|
||||
unicharset_training.getBuildSettings().TargetOS.Type == OSType::Mingw
|
||||
;
|
||||
if (!win_or_mingw)
|
||||
unicharset_training += "pthread"_slib;
|
||||
}
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user