Skip to content

Commit

Permalink
Fix TARGET_PDB_FILE error for static linking.
Browse files Browse the repository at this point in the history
  • Loading branch information
hglee committed Jun 20, 2024
1 parent b5f279e commit 1476a59
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 1476a59

Please sign in to comment.