[sw] Add pthread dependency.

This commit is contained in:
Egor Pugin 2021-01-05 18:45:09 +03:00
parent af4ebaa943
commit 2a74e72c39

7
sw.cpp
View File

@ -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;
}
//