Skip to content

Commit

Permalink
Update sw build.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed May 12, 2019
1 parent 746674f commit b9b74a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ void build(Solution &s)
"src/classify"_id,
"src/arch"_id;

if (s.Settings.Native.CompilerType == CompilerType::MSVC ||
s.Settings.Native.CompilerType == CompilerType::ClangCl)
if (libtesseract.getCompilerType() == CompilerType::MSVC ||
libtesseract.getCompilerType() == CompilerType::ClangCl)
{
libtesseract += "__SSE4_1__"_def;
libtesseract.CompileOptions.push_back("-arch:AVX2");
Expand All @@ -75,7 +75,7 @@ void build(Solution &s)
libtesseract.Public += "org.sw.demo.danbloomberg.leptonica-master"_dep;
libtesseract.Public += "org.sw.demo.libarchive.libarchive"_dep;

if (s.Settings.TargetOS.Type == OSType::Windows)
if (libtesseract.getSettings().TargetOS.Type == OSType::Windows)
{
libtesseract.Public += "ws2_32.lib"_l;
libtesseract.Protected += "NOMINMAX"_def;
Expand Down

0 comments on commit b9b74a6

Please sign in to comment.