aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2014-08-21 20:30:52 +0100
committerChad Versace <chad.versace@linux.intel.com>2014-09-22 01:06:40 -0700
commit92116dae39b5f97ddd45d535b48d7cda1643d545 (patch)
tree4cdd9eea4cd25fd164aaa46804397ece3fd28f7b /src
parentd9e8239a37476cd3fb35efd935ca771d8d17fac7 (diff)
downloadwaffle-92116dae39b5f97ddd45d535b48d7cda1643d545.tar.gz
cmake: drop the LINK_INTERFACE_LIBRARIES hack
It was added in order to silence Debian's packagin system which detected that wflinfo has unused direct deps (is overlinked). Properly annotate waffle's libdeps as PRIVATE this way they won't get propagated to wflinfo and other objects that link against libwaffle. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/waffle/CMakeLists.txt9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/waffle/CMakeLists.txt b/src/waffle/CMakeLists.txt
index d28aca6..648bdbb 100644
--- a/src/waffle/CMakeLists.txt
+++ b/src/waffle/CMakeLists.txt
@@ -162,7 +162,7 @@ include_directories(
)
add_library(${waffle_libname} SHARED ${waffle_sources})
-target_link_libraries(${waffle_libname} ${waffle_libdeps})
+target_link_libraries(${waffle_libname} PRIVATE ${waffle_libdeps})
set_target_properties(${waffle_libname}
PROPERTIES
@@ -171,13 +171,6 @@ set_target_properties(${waffle_libname}
VERSION ${waffle_soversion}.${waffle_minor_version}.${waffle_patch_version}
)
-if(NOT waffle_on_mac)
- set_target_properties(${waffle_libname}
- PROPERTIES
- LINK_INTERFACE_LIBRARIES ""
- )
-endif()
-
install(
TARGETS ${waffle_libname}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}