Skip to content

Commit

Permalink
Merge pull request #4271 from hglee/fix-static-linking-TARGET_PDB_FILE
Browse files Browse the repository at this point in the history
Fix TARGET_PDB_FILE error for static linking.
  • Loading branch information
egorpugin authored Jun 20, 2024
2 parents b5f279e + 1476a59 commit 93c9be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,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(
Expand Down

0 comments on commit 93c9be7

Please sign in to comment.