Skip to content

Commit 629a7a8

Browse files
author
Clement Champetier
committed
CMake: add build path in the linker search for avtranscoder shared library
INSTALL_RPATH_USE_LINK_PATH is a boolean that if set to true will append directories in the linker search path and outside the project to the INSTALL_RPATH.
1 parent dbd4c6e commit 629a7a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ else()
3535
endif()
3636
set_target_properties(avtranscoder-shared PROPERTIES SOVERSION ${AVTRANSCODER_VERSION_MAJOR})
3737
set_target_properties(avtranscoder-shared PROPERTIES VERSION ${AVTRANSCODER_VERSION})
38+
set_target_properties(avtranscoder-shared PROPERTIES INSTALL_RPATH_USE_LINK_PATH 1)
3839
target_link_libraries(avtranscoder-shared ${FFMPEG_LIBRARIES})
3940
target_include_directories(avtranscoder-shared PUBLIC
4041
${AVTRANSCODER_SRC_PATH} ${FFMPEG_INCLUDE_DIR})

0 commit comments

Comments
 (0)