mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 22:51:57 +08:00
14 lines
419 B
Diff
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(
|