Skip to content

Commit 837b793

Browse files
authored
Merge pull request #83 from capitalistspz/use-private
Link and include TurboJPEG and Threads as PRIVATE
2 parents c0e5f80 + 7c5d5f7 commit 837b793

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ ELSEIF(UNIX)
130130
# add pthreads library
131131
set(THREADS_PREFER_PTHREAD_FLAG ON)
132132
find_package(Threads REQUIRED)
133-
target_link_libraries(openpnp-capture PUBLIC Threads::Threads)
133+
target_link_libraries(openpnp-capture PRIVATE Threads::Threads)
134134

135135
# add turbojpeg library
136136
find_package(PkgConfig REQUIRED)
137137
pkg_search_module(TurboJPEG libturbojpeg)
138138
if( TurboJPEG_FOUND )
139-
link_directories(${TurboJPEG_LIBDIR})
140-
target_include_directories(openpnp-capture PUBLIC ${TurboJPEG_INCLUDE_DIRS})
141-
target_link_libraries(openpnp-capture PUBLIC ${TurboJPEG_LIBRARIES})
139+
target_link_directories(openpnp-capture PRIVATE ${TurboJPEG_LIBDIR})
140+
target_include_directories(openpnp-capture PRIVATE ${TurboJPEG_INCLUDE_DIRS})
141+
target_link_libraries(openpnp-capture PRIVATE ${TurboJPEG_LIBRARIES})
142142
else()
143143
# compile libjpeg-turbo for MJPEG decoding support
144144
# right now, we need to disable SIMD because it

0 commit comments

Comments
 (0)