Hi,
I'm trying to build tesseract.exe on Windows/VS2017 using the /MT flag to avoid needing the VC++ runtime library. I have modified cppan.yml as follows:
local_settings:
use_shared_libs: false
short_local_names: true
use_cache: false
#generator: Visual Studio 14 2015 Win64
silent: false
#copy_import_libs: true
build:
c_flags: /W0 /MT
cxx_flags: /W0 /MT
libtesseract:
shared_only: true
The modifications work fine to statically link libtesseract, but adding /MT to cxx_flags seems to have no effect. When I look at the the build output from cppan.exe there is plenty of /MD but no /MT, and the output exe is unchanged.
Does anyone have any idea what the problem might be, or another approach to avoid needing the runtime library?