<div dir="ltr">From 23583e2e31b1f4dba4ab407b50f90e33c9cca506 Mon Sep 17 00:00:00 2001<br>From: Ponsanthini <<a href="mailto:ponsanthini.arunachalam@multicorewareinc.com">ponsanthini.arunachalam@multicorewareinc.com</a>><br>Date: Tue, 15 Oct 2024 16:55:50 +0000<br>Subject: [PATCH] Fix shared/dynamic libs and pkg-config installation issue<br><br>---<br> source/CMakeLists.txt | 4 ++--<br> 1 file changed, 2 insertions(+), 2 deletions(-)<br><br>diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt<br>index 8a3128bb7..e333b47c0 100755<br>--- a/source/CMakeLists.txt<br>+++ b/source/CMakeLists.txt<br>@@ -855,7 +855,7 @@ if(ENABLE_SHARED)<br>         endif()<br>     endif()<br>     set_target_properties(x265-shared PROPERTIES SOVERSION ${X265_BUILD})<br>-    if(X265_LATEST_TAG)<br>+    if(X265_LATEST_TAG OR EXISTS "${PROJECT_BINARY_DIR}/x265")<br>         if(WINDOWS)<br>             set_target_properties(x265-shared PROPERTIES VERSION ${X265_LATEST_TAG})<br>         endif()<br>@@ -877,7 +877,7 @@ if(ENABLE_SHARED)<br>     endif()<br> endif()<br> <br>-if(X265_LATEST_TAG)<br>+if(X265_LATEST_TAG OR EXISTS "${PROJECT_BINARY_DIR}/x265")<br>     # convert lists of link libraries into -lstdc++ -lm etc..<br>     foreach(LIB ${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES} ${PLATFORM_LIBS})<br>         if(IS_ABSOLUTE ${LIB} AND EXISTS ${LIB})<br>-- <br>2.39.3 (Apple Git-146)<br><br></div>