From 539546a6beef40f1b00f84cd7a756abd9f539226 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Thu, 31 Aug 2023 10:53:49 +0200 Subject: [PATCH] [cmake] correctly link WinPR to FreeRDP --- libfreerdp/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libfreerdp/CMakeLists.txt b/libfreerdp/CMakeLists.txt index 8b015413c..defcecb5d 100644 --- a/libfreerdp/CMakeLists.txt +++ b/libfreerdp/CMakeLists.txt @@ -387,6 +387,8 @@ endif() # /primitives +list(APPEND LIBFREERDP_PUB_LIBS winpr) + list(REMOVE_DUPLICATES LIBFREERDP_DEFINITIONS) list(REMOVE_DUPLICATES LIBFREERDP_LIBS) list(REMOVE_DUPLICATES LIBFREERDP_PUB_LIBS) @@ -421,9 +423,7 @@ endif() target_include_directories(${MODULE_NAME} INTERFACE $) target_link_libraries(${MODULE_NAME} PRIVATE ${LIBFREERDP_LIBS}) -if (LIBFREERDP_PUB_LIBS) - target_link_libraries(${MODULE_NAME} PUBLIC ${LIBFREERDP_PUB_LIBS} winpr) -endif() +target_link_libraries(${MODULE_NAME} PUBLIC ${LIBFREERDP_PUB_LIBS}) install(TARGETS ${MODULE_NAME} COMPONENT libraries EXPORT FreeRDPTargets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}