tesseract-ocr / tesseract

Tesseract Open Source OCR Engine (main repository)
https://tesseract-ocr.github.io/
Apache License 2.0
59.53k stars 9.23k forks source link

Fix TARGET_PDB_FILE error for static linking. #4271

Closed hglee closed 2 weeks ago

hglee commented 2 weeks ago

There is error with TARGET_PDB_FILE for static linking.

For example, if you build with vcpkg install tesseract:x64-windows-static , you will get this error:

CMake Error: Error evaluating generator expression:

$<TARGET_PDB_FILE:libtesseract>

TARGET_PDB_FILE is allowed only for targets with linker created artifacts.

I fixed this.