From 3a5295dbb9d85cb890b51a3f2165d7293ecb5469 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Tue, 21 Jun 2022 04:53:28 +0300 Subject: [PATCH] [cmake] remove unnecessary target link Signed-off-by: R4SAS --- build/CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt index 7e3b0b3b..d35bd526 100644 --- a/build/CMakeLists.txt +++ b/build/CMakeLists.txt @@ -193,8 +193,6 @@ else() add_definitions(-DBOOST_SYSTEM_DYN_LINK -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_DATE_TIME_DYN_LINK -DBOOST_REGEX_DYN_LINK) endif() -target_link_libraries(libi2pdclient libi2pd libi2pdlang) - find_package(Boost COMPONENTS system filesystem program_options date_time REQUIRED) if(NOT DEFINED Boost_INCLUDE_DIRS) message(SEND_ERROR "Boost is not found, or your boost version was below 1.46. Please download Boost!") @@ -269,7 +267,6 @@ if(WITH_BINARY) set(DL_LIB ${CMAKE_DL_LIBS}) endif() - target_link_libraries(libi2pd ${Boost_LIBRARIES} ZLIB::ZLIB) target_link_libraries("${PROJECT_NAME}" libi2pd libi2pdclient libi2pdlang ${DL_LIB} ${Boost_LIBRARIES} OpenSSL::SSL OpenSSL::Crypto ${MINIUPNPC_LIBRARY} ZLIB::ZLIB Threads::Threads ${DL_LIB} ${CMAKE_REQUIRED_LIBRARIES}) install(TARGETS "${PROJECT_NAME}" RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT Runtime)