Skip to content

Commit c4dd537

Browse files
committed
[cmake] Add visibility to all target_link_libraries calls.
1 parent b0f61df commit c4dd537

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ target_compile_definitions (libtesseract
343343
)
344344
set_target_properties (libtesseract PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS True)
345345
endif()
346-
target_link_libraries (libtesseract ${LIB_Ws2_32} ${LIB_pthread})
346+
target_link_libraries (libtesseract PRIVATE ${LIB_Ws2_32} ${LIB_pthread})
347347
set_target_properties (libtesseract PROPERTIES VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
348348
set_target_properties (libtesseract PROPERTIES SOVERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
349349
if (WIN32)
@@ -372,7 +372,7 @@ if (WIN32 AND CLANG AND OPENMP_BUILD)
372372
# Workaround for "libomp.lib is not automatically added on Windows"
373373
# see: http://lists.llvm.org/pipermail/openmp-dev/2015-August/000857.html
374374
# TODO: Find better way how to set Clang OpenMP library for linking on Windows
375-
target_link_libraries (libtesseract "c:\\Program Files\\LLVM\\lib\\libomp.lib")
375+
target_link_libraries (libtesseract PRIVATE "c:\\Program Files\\LLVM\\lib\\libomp.lib")
376376
endif()
377377

378378
########################################

0 commit comments

Comments
 (0)