41 lines
1.6 KiB
Diff
41 lines
1.6 KiB
Diff
diff -rupN --no-dereference tesseract-5.1.0/CMakeLists.txt tesseract-5.1.0-new/CMakeLists.txt
|
|
--- tesseract-5.1.0/CMakeLists.txt 2022-03-01 17:25:45.000000000 +0100
|
|
+++ tesseract-5.1.0-new/CMakeLists.txt 2022-03-02 15:47:55.575671906 +0100
|
|
@@ -328,7 +328,7 @@ elseif(UNIX)
|
|
set(LIB_pthread pthread)
|
|
endif()
|
|
elseif(WIN32)
|
|
- set(LIB_Ws2_32 Ws2_32)
|
|
+ set(LIB_Ws2_32 ws2_32)
|
|
endif()
|
|
|
|
add_definitions("-DCMAKE_BUILD")
|
|
@@ -770,11 +770,14 @@ set_target_properties(libtesseract
|
|
set_target_properties(libtesseract
|
|
PROPERTIES SOVERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
|
|
|
|
-if(WIN32)
|
|
+if(MSVC)
|
|
set_target_properties(libtesseract
|
|
PROPERTIES OUTPUT_NAME tesseract${VERSION_MAJOR}${VERSION_MINOR})
|
|
set_target_properties(libtesseract
|
|
PROPERTIES DEBUG_OUTPUT_NAME tesseract${VERSION_MAJOR}${VERSION_MINOR}d)
|
|
+elseif(MINGW)
|
|
+ set_target_properties(libtesseract PROPERTIES SUFFIX "-${VERSION_MAJOR}${VERSION_MINOR}${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
|
+ set_target_properties(libtesseract PROPERTIES OUTPUT_NAME tesseract)
|
|
else()
|
|
set_target_properties(libtesseract PROPERTIES OUTPUT_NAME tesseract)
|
|
endif()
|
|
@@ -882,9 +885,9 @@ install(
|
|
|
|
if(INSTALL_CONFIGS)
|
|
install(FILES ${TESSERACT_CONFIGS}
|
|
- DESTINATION ${CMAKE_INSTALL_PREFIX}/share/tessdata/configs)
|
|
+ DESTINATION ${TESSDATA_PREFIX}/tessdata/configs)
|
|
install(FILES ${TESSERACT_TESSCONFIGS}
|
|
- DESTINATION ${CMAKE_INSTALL_PREFIX}/share/tessdata/tessconfigs)
|
|
+ DESTINATION ${TESSDATA_PREFIX}/tessdata/tessconfigs)
|
|
endif()
|
|
|
|
# ##############################################################################
|