changeset 693:ff744171cfd1

cmake: make libjeffpc's dependancies private By default, all libraries listed in target_link_libraries are used when linking the target *and* any target that depends on it. In this case, it meant that each of the test bins got linked against libexecinfo, etc. Marking libjeffpc's deps as private will make cmake use them only when linking libjeffpc but none of its consumers. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Sat, 16 Mar 2019 22:16:44 -0400
parents 2b82f7e7ee8e
children bcc31181a255
files CMakeLists.txt
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Tue Mar 12 21:08:17 2019 -0400
+++ b/CMakeLists.txt	Sat Mar 16 22:16:44 2019 -0400
@@ -134,7 +134,7 @@
 	${UMEM_EXTRA_SOURCE}
 )
 
-target_link_libraries(jeffpc
+target_link_libraries(jeffpc PRIVATE
 	${UMEM_LIBRARY}
 	${EXECINFO_LIBRARY}
 	${SOCKET_LIBRARY}