diff options
author | Azat Khuzhin <azat@libevent.org> | 2022-01-15 22:06:58 +0300 |
---|---|---|
committer | Azat Khuzhin <azat@libevent.org> | 2022-01-15 22:10:36 +0300 |
commit | 6d09efe8686de824adf3d8810bbe0d5c386643e4 (patch) | |
tree | 6da6a761ad3e963f8b9700fb3f826cb04e362371 /cmake | |
parent | 78fa3971be892194aa168c04fc34bf5f2cd99b99 (diff) | |
download | libevent-6d09efe8686de824adf3d8810bbe0d5c386643e4.tar.gz |
Set RPATH only if installation is done into non system directory
v2: use CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
Fixes: #1245
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/AddEventLibrary.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmake/AddEventLibrary.cmake b/cmake/AddEventLibrary.cmake index 374b774f..9af39441 100644 --- a/cmake/AddEventLibrary.cmake +++ b/cmake/AddEventLibrary.cmake @@ -159,8 +159,7 @@ macro(add_event_library LIB_NAME) "${LIB_NAME}_shared" PROPERTIES OUTPUT_NAME "${LIB_NAME}-${EVENT_PACKAGE_RELEASE}" VERSION "${CURRENT_MINUS_AGE}.${EVENT_ABI_LIBVERSION_AGE}.${EVENT_ABI_LIBVERSION_REVISION}" - SOVERSION "${CURRENT_MINUS_AGE}" - INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") + SOVERSION "${CURRENT_MINUS_AGE}") endif() if (NOT WIN32) |