]> granicus.if.org Git - libevent/commitdiff
cmake: use CMAKE_LIBRARY_OUTPUT_DIRECTORY for the final shared library symlink
authorAzat Khuzhin <azat@libevent.org>
Sat, 30 Nov 2019 12:53:52 +0000 (15:53 +0300)
committerAzat Khuzhin <azat@libevent.org>
Sat, 30 Nov 2019 12:54:56 +0000 (15:54 +0300)
Fixes: 669a53f3 ("cmake: set library names to be the same as with autotools")
cmake/AddEventLibrary.cmake

index 4a6802df14d8551bd3ba092b31187b925f364923..752255000632f8a0fe670c2f665d63d35279ef8b 100644 (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}")