vcpkg/ports/tesseract/fix-share-build.patch
2024-06-28 22:21:37 -07:00

14 lines
419 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index aa87db6..faf7ac1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -938,7 +938,7 @@ install(
RUNTIME DESTINATION bin
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
-if (MSVC)
+if (MSVC AND BUILD_SHARED_LIBS)
install(FILES $<TARGET_PDB_FILE:libtesseract> DESTINATION bin OPTIONAL)
endif()
install(