From 8219797cbb35e38aa334ce13d074f4cfefa6a189 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 23 Nov 2024 10:14:05 +0000 Subject: [PATCH] cmake: don't link bluelib modules to their dependencies this fixes duplicate library warnings given by ld, but still ensures that the user lists all dependent bluelib modules in their CMakeFiles.txt --- cmake/FindBluelib.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/FindBluelib.cmake b/cmake/FindBluelib.cmake index cd33e0d..9994092 100644 --- a/cmake/FindBluelib.cmake +++ b/cmake/FindBluelib.cmake @@ -123,7 +123,7 @@ if (Bluelib_FOUND) message(FATAL_ERROR "Bluelib: Module 'Object' depends on 'Core', which was not specified in find_package()") endif () - target_link_libraries(Bluelib::Object INTERFACE Bluelib::Core) + #target_link_libraries(Bluelib::Object INTERFACE Bluelib::Core) endif () if ("${component}" STREQUAL "Term") @@ -135,7 +135,7 @@ if (Bluelib_FOUND) message(FATAL_ERROR "Bluelib: Module 'Term' depends on 'Object', which was not specified in find_package()") endif () - target_link_libraries(Bluelib::Term INTERFACE Bluelib::Core Bluelib::Object) + #target_link_libraries(Bluelib::Term INTERFACE Bluelib::Core Bluelib::Object) endif () if ("${component}" STREQUAL "Cmd") @@ -151,7 +151,7 @@ if (Bluelib_FOUND) message(FATAL_ERROR "Bluelib: Module 'Cmd' depends on 'Term', which was not specified in find_package()") endif () - target_link_libraries(Bluelib::Cmd INTERFACE Bluelib::Core Bluelib::Object Bluelib::Term) + #target_link_libraries(Bluelib::Cmd INTERFACE Bluelib::Core Bluelib::Object Bluelib::Term) endif () endforeach (component) endif()