cmake: use CMAKE_LIBRARY_OUTPUT_DIRECTORY for the final shared library symlink

Fixes: 669a53f3 ("cmake: set library names to be the same as with autotools")
This commit is contained in:
Azat Khuzhin 2019-11-30 15:53:52 +03:00
parent aff231229e
commit b9f442e2d7

View File

@ -119,7 +119,7 @@ macro(add_event_library LIB_NAME)
${LIB_LIBRARIES})
export_install_target(static "${LIB_NAME}" "${LIB_OUTER_INCLUDES}")
set(ADD_EVENT_LIBRARY_INTERFACE "${LIB_NAME}_static")
endif()
@ -170,7 +170,7 @@ macro(add_event_library LIB_NAME)
COMMAND ${CMAKE_COMMAND} -E create_symlink
"$<TARGET_FILE_NAME:${LIB_NAME}_shared>"
"${LIB_LINK_NAME}"
WORKING_DIRECTORY "lib")
WORKING_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
endif()
export_install_target(shared "${LIB_NAME}" "${LIB_OUTER_INCLUDES}")