mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
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:
parent
aff231229e
commit
b9f442e2d7
@ -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}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user