[freerdp,cmake] fix linking of object library
do add to source files so that static linking does not look for a static library once installed.
This commit is contained in:
parent
a01639e3c4
commit
b0f7ab7d16
@ -179,6 +179,11 @@ list(REMOVE_DUPLICATES LIBFREERDP_DEFINITIONS)
|
||||
list(REMOVE_DUPLICATES LIBFREERDP_INCLUDES)
|
||||
include_directories(${LIBFREERDP_INCLUDES})
|
||||
|
||||
if (LIBFREERDP_OBJECT_LIBS)
|
||||
list(REMOVE_DUPLICATES LIBFREERDP_OBJECT_LIBS)
|
||||
list(APPEND LIBFREERDP_SRCS ${LIBFREERDP_OBJECT_LIBS})
|
||||
endif()
|
||||
|
||||
AddTargetWithResourceFile(${MODULE_NAME} FALSE "${FREERDP_VERSION}" LIBFREERDP_SRCS)
|
||||
|
||||
add_definitions(${LIBFREERDP_DEFINITIONS})
|
||||
@ -188,11 +193,6 @@ if (LIBFREERDP_COMPILE_OPTIONS)
|
||||
target_compile_options(${MODULE_NAME} PRIVATE ${LIBFREERDP_COMPILE_OPTIONS})
|
||||
endif()
|
||||
|
||||
if (LIBFREERDP_OBJECT_LIBS)
|
||||
list(REMOVE_DUPLICATES LIBFREERDP_OBJECT_LIBS)
|
||||
target_link_libraries(${MODULE_NAME} PRIVATE ${LIBFREERDP_OBJECT_LIBS})
|
||||
endif()
|
||||
|
||||
if (WITH_FULL_CONFIG_PATH)
|
||||
add_definitions(-DWITH_FULL_CONFIG_PATH)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user