vcpkg/ports/tesseract/fix-share-build.patch

14 lines
419 B
Diff
Raw Normal View History

2024-06-29 13:21:37 +08:00
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(